fgets

Mimic Python's strip() function in C

Mimic Python's strip() function in C Question: I started on a little toy project in C lately and have been scratching my head over the best way to mimic the strip() functionality that is part of the python string objects. Reading around for fscanf or sscanf says that the string is processed upto the first …

Total answers: 5