• Advertisement

Archived

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

Removing a newline character at end of *char

This topic is 5065 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