Page 1 of 1

A "strcpy" Question

PostPosted: Sun Jul 25, 2010 10:21 pm
by Toasterman
Changing text using the built in funtion (the one that opens a whole new window) is a pain in the rear, so I use strcpy.
I was wondering if it was possible to have text over multiple lines via strcpy- can you use the "enter" key, basically.
Just pressing "enter" in your quotes doesn't work (or atleast it didn't when I tried- maybe I messed something else).

Is it even possible, and if so, how?
thanks in advance

by the way, is this question more suited to the "general" forum? (sorry if I posted in the wrong place)

Re: A "strcpy" Question

PostPosted: Sun Jul 25, 2010 10:59 pm
by DilloDude
You can use the esacpe sequence "\n" for a new line:
Code: Select all
strcpy(text, "Hello, bob!\nHow's it going?");

Re: A "strcpy" Question

PostPosted: Sun Jul 25, 2010 11:23 pm
by Toasterman
Thank You! :D
your_points+=1;