MGrStripComment
mojave green software co's general utilities library libMG.so.0 ( -lMG )}
#include <MGrStripComment.h> int MGrStripComment( char* buffer, char delmiter ) |
int MGrStripComment( char*, /* {buffer containing data to be stripped of comments} */, char ); /* comment delimiter */
Returns length of buffer with comments stripped.
MGrStripComment sources | ||
---|---|---|
MGrStripComment.c | MGrStripComment.h |
fprintf( stdout, "%s\n",ConfigBuffer ); while( ( fileSize = MGrStripComment( ConfigBuffer, '#' ) ) != 0 ) { ConfigBuffer = ( char* )realloc( ConfigBuffer, fileSize + 1 ); ConfigBuffer[fileSize] = 0; } fprintf( stdout, "%s\n",ConfigBuffer );
Mojave Green Software Co. Landers Ca Michael C. Shultz