I think I tried to post it here before but it didn't work. Im not askin for the full solution, the deadline is passed anyway but this has been keeping me up nights.
"Write a function scanstring that works like scanf with a %s placeholder - it should skip leading whitespace and copy a string up to the next whitespace character. It should have 2 parameters: the string variable into which the string is copied, and the amount of space available in the string. It should use getchar to read in the string characters.
"
This is an assignment I was given, I couldnt figure out how to test for whitespaces and I don't know how to use the Cstring::trimleft...
Any help with either would be appreciated.