![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on C Problem within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I dont know if theres an easy answer to this because to me it seems like a dumb question to ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
I dont know if theres an easy answer to this because to me it seems like a dumb question to ask, but i guess asking is the only way to learn ive tried everything i can think of to solve this but i cant seem to figure it out...
Anyways, is there a way to clear an entire string? Ive been copy data into this string using memcpy() and is there a way to erase all the data thats in the string?? |
|
|
|
|
|
|
#2 |
![]() Mushroom Man
|
Give this a try: memset(string, '\0', strlen(string));
__________________
[URL=http://www.othala.co.uk]Othala[/URL] [B]o[/B] [URL=http://www.entheogendefencefund.org.uk/]Save the shroom![/URL] [CENTER][URL=http://www.othala.co.uk/travellerBlog][IMG]http://www.othala.co.uk/graphics/travBanner.png[/IMG][/URL][/CENTER] |
|
|
|
![]() |
| Tags |
| problem |
| Thread Tools | |
|
|