mxCopyCharacterToPtr, mxCopyPtrToCharacter

Purpose

Copy CHARACTER values between Fortran and pointer arrays.

Fortran Synopsis

subroutine mxCopyPtrToCharacter(px,y,n)
subroutine mxCopyCharacterToPtr(y,px,n)
character y(n)
integer*4 px, n

Arguments

n
number of elements to copy
px
pointer to string or name array
y
CHARACTER Fortran array

Description

These routines provide a way to copy CHARACTER values between MATLAB name or string arrays and Fortran CHARACTER arrays. They are essential for copying character data from MATLAB's pointer arrays into ordinary Fortran CHARACTER arrays.

mxCopyPtrToCharacter(px,y,n) copies n CHARACTER values from the MATLAB array pointed to by px into the Fortran CHARACTER array y.

mxCopyCharacterToPtr(y,px,n) copies n CHARACTER values from the Fortran CHARACTER array y into the MATLAB string array pointed to by px.

(c) Copyright 1994 by The MathWorks, Inc.