Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

sepples

Name: Anonymous 2009-01-19 18:16

Hey /prog/
I never really used C or C++ before, other than when I started learning programming. I want to do something in one of them, (maybe an OS lol) but I'm not very confident about allocating/freeing up memory (I haven't done it before often).
Just to refresh my memory, as long as I use malloc and free with C and new and delete keywords with C++ I'm safe, right? And can I use malloc and free in C++ too?

Also, discuss Objective-C and the Sepplesox I heard about before.

Name: Anonymous 2009-01-19 19:13

>>23
Any time you use a string literal (a string in double quotes) you get a NUL at the end.
That's what I thought.
you could zero your buffer first.
So can anybody tell me if there's a function to do this or if I should use a for loop (lol)?
if you write string handling in C I'm going to hunt you down.
Is it really that bad?

I'm going to sleep now, /prog/
Thanks for helping me, and I hope that you will have a nice day/night.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List