_CP_TERM

_CP_TERM terminates a CPSTR* string with a null character.

Syntax

_CP_TERM(CPSTR* string)

 

NOTE

The _CP_TERM macro must be used on all CPSTR* whose _CP_SADDRs are passed to standard UNIX library routines.

Example(s)

*/ Creates a string and terminates it with a 0, so that ’printf’ can be used. */

 

CPSTR *s= _CP_mkstr( "Enter name " );

_CP_TERM( s );

printf( _CP_ADDR( s ) );

See Also

C Functions Overview