Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

GoldMage

Removing a newline character at end of *char

This topic is 5306 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m loading a model and a newline character is getting in why for loading the texture. I want to know if there is a way to remove it from a *char. -GoldMage

Share this post


Link to post
Share on other sites
Advertisement
You will have to loop through the string and if its a newline then remove it, i.e. replace it with something or collapse the array and make it shorter.

There's the pseudocode, if you need some actual code snippets (which I wouldn't expect you do since you're loading models and textures) then you'll have to be more specific.

[edited by - tiffany_smith on April 11, 2004 7:17:01 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!