Bits and Pieces
Thursday, February 27, 2014
to trim buff after reading line by line with fgets (c++)
buff[ strcspn( buff, "\n")]='\0';
solves the new line at the end of the string (kind of trim() )
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment