Back | Reverse |

C problem
Link | by killer on 2005-04-05 19:53:09
could some one tell me what's the best way to read string without counting the blank space

long life....

Re: C problem
Link | by gendou on 2005-04-06 01:43:23
i think you mean you want to trim spaces off the front and end of the string?
for example: input = " i like spaces ", output = "i like spaces"

if you are using .NET, search for the trim function.
otherwise, you can make your own trim.h file (see here)


Back | Reverse |

Copyright 2000-2024 Gendou | Terms of Use | Page loaded in 0.0020 seconds at 2024-12-27 14:52:02