strcpy question

Non-platform specific questions.

strcpy question

Postby zygoth » Sat Jan 17, 2009 2:04 am

How do I call a new line in strcpy? I tried inserting /n but it just displays it with my text.

strcpy(text, "I want this to go on two or more lines! /n just shows up as text")

Thanks
Nova: 100% Vertigo/Mazeman: 100%
Visit my website to download them both! http://www.ketonegames.com
User avatar
zygoth
 
Posts: 140
Joined: Mon Jun 11, 2007 6:37 pm
Score: 5 Give a positive score

Re: strcpy question

Postby Rux » Sat Jan 17, 2009 2:20 am

You got it backwards. Its \n not /n.
I'm not good at coming up with signatures...
User avatar
Rux
 
Posts: 645
Joined: Sun Apr 29, 2007 9:26 pm
Location: Sitting on your moniter invisable.
Score: 35 Give a positive score

Re: strcpy question

Postby zygoth » Sat Jan 17, 2009 2:34 pm

Ok thanks I'll try that.
Nova: 100% Vertigo/Mazeman: 100%
Visit my website to download them both! http://www.ketonegames.com
User avatar
zygoth
 
Posts: 140
Joined: Mon Jun 11, 2007 6:37 pm
Score: 5 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron