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

ENTERPRISE UNICODE DETECTOR AND READER

Name: Anonymous 2012-01-12 20:35


#include <stdio.h>

int main(void) {
  char buff[256];
  char c;
  FILE *f;

  f = fopen("filename", "r");
  c = fgetc(f);
  if(c < 0) {
    fclose(f);
    system("type filename > filename.tmp");
    f = fopen("filename.tmp", "r");
  }
  else {
    rewind(f);
  }

  while(fgets(buff, 256, f) != NULL)
    puts(f);

  fclose(f);
 
  return(0);
}

Name: Anonymous 2012-01-13 7:21

>>40
I read it. It said ``functions have FUCK ALL to do with spacing and >>40 is such a flaming twink he makes Anal Touring look like Cassafuckinova.''

Name: Anonymous 2012-01-13 7:23

>>41
Go back to /g/ you fucking retard.

Name: Anonymous 2012-01-13 7:24

Since the implementation is allowed to whatever it wants with undefined and unspecified behavior I'm going to patch GCC to create executables that delete all your files when it detects undefined behavior.

Name: Anonymous 2012-01-13 7:25

>>42
I'm not from /g/, fuckface. Why don't you tell me what spacing has to do with functions.

Name: Anonymous 2012-01-13 7:27

>>44
I'm not from /g/, fuckface.
Lies.

Name: Anonymous 2012-01-13 7:30

>>45
Still waiting on your explanation, Dennis Bitchie.

Name: >>45 2012-01-13 7:32

>>46
I'm not >>42 , so keep waiting.

Name: Anonymous 2012-01-13 7:34

>>28
You should probably use something other than GANOOOO and your jew architecture

Name: Anonymous 2012-01-13 7:37

>>48
Fuck off.

Name: Anonymous 2012-01-13 7:38

>>49
Tell me where in the standard it says anything about stacks. Go back to /g/

Name: Anonymous 2012-01-13 7:43

>>28
GNEW/Loonix is not the standard. You should really use a conforming implementation of C

Name: Anonymous 2012-01-13 9:11

>>51
>hurr durr C doesn't have a stack

Name: Anonymous 2012-01-13 9:39

>>52
Go back to /g/, retard, C doesn't have a stack.

Name: Anonymous 2012-01-13 10:57

>>44
You can read it in K&R you stupid piece of shit, it was even forced in the new edition of Perl but I can't expect your monkey ass to be intelligent enough to read rationale written by people who are infinitely more intelligent than you.

Name: Anonymous 2012-01-13 11:03

>>54
>>44 reminds of the idiot computer science major who didn't understand how fflush() worked. Presumably homer isn't bright enough to do the excercises in K & R. Otherwise he wouldn't have given a cynical response when someone provided the correct description to fflush(). Geeze, and then this jew wonders why he can't get a programming job.

Name: Anonymous 2012-01-13 11:23

>>52
C doesn't have a stack. A conforming implementation could implement all functions by inlining and function pointers by transforming them into the selector for a switch statement containing all valid values and inlining it (a pattern often used for state machines and interpreters). It could also use local static variables, garbage collection, or the heap for parameters and automatic variables, and use goto and heap-allocated linked lists for non-tail recursion. Some implementations transform automatic variables in non-recursive functions into static variables, some use a linked list of activation records allocated from a heap, and others use separate stacks for the return address, arguments, and local variables.

If C had an explicit stack, optimizations like tail-call elimination, register-based calling conventions, and automatic inlining would be illegal.

Name: Anonymous 2012-01-13 12:47

ENTERPRISE UNICORN DETECTOR

Name: Anonymous 2012-01-13 14:03

>>56

pushad
call fuckOff
popad

Name: Anonymous 2012-01-13 15:11

This is a really good Unicode detector and reader. I will make a library out of this.

Name: Anonymous 2012-01-13 15:14

Why do you insufferable shitheads think if(expr) isn't acceptable? Just stuck to your python children.

Name: Anonymous 2012-01-13 15:17

>>58
Niggas be stacks, we push drugs and pop caps.

Name: Anonymous 2012-01-13 15:18

>>58
Searching C99 for "stack"...
No results found, ``faggot''.

Name: Anonymous 2012-01-13 15:26

>>58
Intel shit
Sorry, I don't read Hebrew.

Name: Anonymous 2012-01-13 16:31

>>38
Autism

Name: Anonymous 2012-01-13 18:18

>>64
Go back to /jp/.

Name: Anonymous 2012-01-13 18:33

>>64
Go back to the imageboards

Name: Anonymous 2012-01-13 19:13

>>62
Do you enjoy having an IQ 35 points below average? Do you enjoy talking about languages you have no clue how to use?

What happened in your childhood that made you this way?

Name: Anonymous 2012-01-13 19:25

>>67
Are crypto-Jew Bill Gates and crypto-Jew Otellini your gods?
Go back to the imageboards

Name: Anonymous 2012-01-13 20:06

>>68
/polecat kebabs/

Name: Anonymous 2012-01-13 20:48

>>63-69
Stop filling this thread up with trash.

Name: Anonymous 2012-01-13 21:24

>>70
This will happen when we /polecat kebabs/

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