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

Pages: 1-4041-

ULTIMATE QUESTION.

Name: Anonymous 2007-09-16 16:33 ID:megCKdPE

(1) char* string_ptr;
(2) char  *string_ptr;
(3) What the fuck does ptr mean?

Name: Anonymous 2007-09-16 16:35 ID:megCKdPE

1. Clarity 4 realz

Name: Anonymous 2007-09-16 16:46 ID:6CzfdJRe

it's shorthand for "puter" which is an abbreviation of "computer"

Name: Anonymous 2007-09-16 16:49 ID:dbKC/rhY

i thought puter was wetback speak for faggot

Name: Anonymous 2007-09-16 16:53 ID:ORF0UaRc

char_ptr string;

Name: Anonymous 2007-09-16 17:00 ID:dbKC/rhY

pointer is an imaginary reference to a location in a register. ... I think ...

Name: Anonymous 2007-09-16 17:11 ID:RBz7Yfe/

char* text;

RGWEAD IVRT.

Name: Anonymous 2007-09-16 17:12 ID:RBz7Yfe/

O FUCK

...............

..............

Name: Anonymous 2007-09-16 17:12 ID:RBz7Yfe/

[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]
[m]char[b] *[b] text;[/m]

Name: Anonymous 2007-09-16 17:13 ID:RBz7Yfe/

char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;

Name: Anonymous 2007-09-16 17:13 ID:RBz7Yfe/

>>10
>>10
>>10
THIS IS THE WAY

Name: Anonymous 2007-09-16 17:23 ID:Heaven

>>1
none of the above because of shitty naming convention with underscores

Name: Anonymous 2007-09-16 17:27 ID:RBz7Yfe/

>>12
thats perfectly good C style, but putting "ptr" in the name is certainly not.

C is not java, do not fucking use CamelToe in C.

Name: Anonymous 2007-09-16 17:55 ID:2Gb6LMLn

(2) char *string_ptr;

What is the right way to create two pointers to chars?
1. char* one, two
2. char *one, *two

That settles with which part the asterisk should go.
Also I agree with >>13

Name: Anonymous 2007-09-16 17:57 ID:2Gb6LMLn

>>15
I forgot the semicolons but you get the point.

Name: Anonymous 2007-09-16 18:08 ID:Ftfjbf+q

>>14
Declaring more than one variable on the same line considered harmful.

Name: Anonymous 2007-09-16 18:35 ID:Heaven

>>16
You are wrong. Formal proof:

double x, y, z;

vs

double x;
double y;
double z;

Name: Anonymous 2007-09-16 18:35 ID:Heaven

char*one,*two; or GTFO

Name: Anonymous 2007-09-16 18:37 ID:megCKdPE

>>13

You'll find the naming convention "ptr" used a lot in K&R.

Name: Anonymous 2007-09-16 18:46 ID:Heaven

>>19

K&R sucks.

Name: Anonymous 2007-09-16 18:47 ID:megCKdPE

>>20

It's also used in O'Reillys "Practical C Programming". Suck my balls.

Name: Anonymous 2007-09-16 18:53 ID:RBz7Yfe/

>>19
You'll find K&R is full of SHIT, as far as I'm concerned.

Name: Anonymous 2007-09-16 18:54 ID:RBz7Yfe/

>>16
not knowing C and declaring things are harmful considered harmful.

Name: Anonymous 2007-09-16 19:02 ID:Heaven

>>21

O'Reilly sucks.

Name: Anonymous 2007-09-16 19:31 ID:Gogw3xos

>>24
NO U

Name: Anonymous 2007-09-16 19:33 ID:Heaven

>>25

U sucks.

Name: Anonymous 2007-09-16 21:34 ID:RMUzQbry

>>26
NO ME

Name: Anonymous 2007-09-16 21:44 ID:Heaven

>>27
faggot.

Name: Anonymous 2007-09-17 5:44 ID:Heaven

1) char* ptr; might not work with all compilers.
either char * ptr; or char *ptr;
2) K&R rocks, that along with the c99 standard is all you need.
3) ptr is nice, do not use underscores and no shitty names like ``text'' or ``string''. Try buf, buffer, p, s, ptr, bufptr, etc.

>>1-23,25-27 are faggots

Name: Anonymous 2007-09-17 21:53 ID:WmseDHjg

>>29
ANSI C OR GTFO

Name: Anonymous 2007-09-17 22:25 ID:iENG03Ym

C sucks.

Name: Anonymous 2007-09-17 22:47 ID:Us36tGrU

char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;
char * text;

Name: gar 2007-09-17 23:40 ID:nHECll0M

Name: Anonymous 2007-09-18 1:47 ID:2GH8urn8

unnecessary whitespace is for idiots who can't read

Name: Anonymous 2007-09-18 2:07 ID:vts5p2YH

>>34
2nded

Name: Anonymous 2007-09-18 2:15 ID:0yaFS181

unnecessary high level languages are for idiots who can't program in machine code

Name: Anonymous 2007-09-18 2:33 ID:YBwFz8rK

Unnecessarily low-level languages or for idiots who can't understand real languages.

Name: Anonymous 2007-09-18 2:47 ID:Jt2u2SOT

>>37

Writes Java for a living

Name: Anonymous 2007-09-18 2:52 ID:RhXzbfKi

Unnecessarily panparadiagm languages for idiots who actually have a clue

Name: Anonymous 2007-09-18 3:11 ID:YBwFz8rK

>>38
Oh wow. I said high-level, and you said Java. Now I'm depressed. I expected better from /prog/.

Name: Anonymous 2007-09-18 3:16 ID:B51cABQl

Java is high level.
What is your definition of high-level?

Name: Anonymous 2007-09-18 3:17 ID:B51cABQl

Oh I see, you didn't mean it wasn't high level.

Name: Anonymous 2007-09-18 4:00 ID:YBwFz8rK

I just meant that assuming I must have been talking about Java is so fail.

Name: Anonymous 2007-09-18 5:41 ID:SX91OQiQ

>>41
Java is a mid-level language at best. To be a high level language it'd need more comfortable features such as built-in lists and dictionaries (with value syntax), dynamic typing or at least type inference, etc., and/or better abstractions such as first-class functions, continuations, etc.

Name: Anonymous 2007-09-18 7:38 ID:B51cABQl

>>44 whatever, it can draw stuff. It's high level.

Name: Anonymous 2007-09-18 7:42 ID:B51cABQl

the 'relatively' is implied.

Name: Anonymous 2007-09-18 9:10 ID:Heaven

>>45
machine code can draw stuff.

Name: Anonymous 2007-09-18 9:18 ID:B51cABQl

>>47 That's obvious, what is it - captain obvious day today?

Name: Anonymous 2007-09-18 9:21 ID:B51cABQl

Here is my analogy of the recent conversation:

person a: This kettle is hot!
person b: The kettle isn't hot, the SUN IS HOT!
person a: It is hot, it burnt my hand!
person c: Even cold stuff can burn your hands!

Name: Anonymous 2007-09-18 9:23 ID:SX91OQiQ

person d: My other car is a cdr

Name: Anonymous 2011-02-03 5:36

Name: Anonymous 2013-09-01 20:02


 So I've been out of the loop for several months now.

Name: Anonymous 2013-09-01 20:48


If by god you mean the imaginary half naked old man that lives in the head of all American Christians then yes.

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