QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

C Problem

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 ...

Reply
 
LinkBack Thread Tools
Old 04-09-2006, 07:50 AM   #1
 
Join Date: Apr 2006
Posts: 49
Trader Feedback: 0
Question C Problem

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??
Feldor is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-09-2006, 07:54 AM   #2
Mushroom Man
 
Psilocybeing's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 318
Trader Feedback: 0
Default

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]
Psilocybeing is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-09-2006, 10:54 AM   #3
 
Join Date: Apr 2006
Posts: 49
Trader Feedback: 0
Default

thanks worked perfectly
Feldor is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
problem

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 08:26 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us