anchor.diff:     CALL FAST_CreateCheckpoint_T(t_initial, n_t_global, 1, Turbine, CheckpointRootName, ErrStat, ErrMsg, Unit )
   
         ! transfer Fortran variables to C:      
  -   ErrStat_c = ErrStat
  -   ErrMsg_c  = TRANSFER( TRIM(ErrMsg)//C_NULL_CHAR, ErrMsg_c )
  +   ErrStat_c     = ErrStat
  +   ErrMsg        = TRIM(ErrMsg)//C_NULL_CHAR
  +   ErrMsg_c      = TRANSFER( ErrMsg//C_NULL_CHAR, ErrMsg_c )
   
   
   #ifdef CONSOLE_FILE   
  
positive.code:       n_t_global = n_t_global + 1
              
        ErrStat_c = ErrStat
        ErrMsg_c  = TRANSFER( TRIM(ErrMsg)//C_NULL_CHAR, ErrMsg_c )
     END IF
     
        
  
negative.code:    AbortErrLev_c = AbortErrLev   
     dt_c          = Turbine%p_FAST%dt
     ErrStat_c     = ErrStat
     ErrMsg        = TRIM(ErrMsg)//C_NULL_CHAR
     ErrMsg_c      = TRANSFER( ErrMsg//C_NULL_CHAR, ErrMsg_c )
     
     call SetOpenFOAM_pointers(OpFM_Input_from_FAST, OpFM_Output_to_FAST)
                          
  