August 11, 2004

FreeBSD

MGrStripComment(3) i386/PRM


NAME

MGrStripComment


LIBRARY

mojave green software co's general utilities library libMG.so.0 ( -lMG )}


SYNOPSIS

#include    <MGrStripComment.h>

int MGrStripComment( char* buffer, char delmiter )

                   

DESCRIPTION

int     MGrStripComment(
        char*,      /* {buffer containing data to be stripped of comments} */,
        char );     /* comment delimiter */ 
       

RETURN VALUES

Returns length of buffer with comments stripped.


FILES

MGrStripComment sources
MGrStripComment.c MGrStripComment.h

EXAMPLES

fprintf( stdout, "%s\n",ConfigBuffer );
while( ( fileSize = MGrStripComment( ConfigBuffer, '#' ) ) != 0 )
{
    ConfigBuffer = ( char* )realloc( ConfigBuffer, fileSize + 1 );
    ConfigBuffer[fileSize]  = 0;
}
fprintf( stdout, "%s\n",ConfigBuffer );
       

DIAGNOSTICS


COMPATIBILITY


ERRORS


SEE ALSO


STANDARDS


HISTORY


AUTHORS

Mojave Green Software Co.
Landers Ca
Michael C. Shultz
       

BUGS