I wanna have a string like:
blablbabla<carriage return goes here>
I mean the string should contain the carriage return. Is there any simple way to do it? Or if a write a program in c and use fputs with blablabla\r, does this do the trick?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re using
vimyou can enter insert mode and type ‘CTRL-v CTRL-m’. That ^M is the keyboard equivalent to \r. (see Insert the carriage return character in vim)Inserting 0x0D in a hex editor will do the task.