• C file input/output (redirect from Stdio.h)
    output. These functions make up the bulk of the C standard library header <stdio.h>. The functionality descends from a "portable I/O package" written by Mike...
    19 KB (892 words) - 12:17, 25 October 2024
  • C standard library (redirect from Stdlib.h)
    #include <stdio.h> int main() { return ::puts("Hello, world!") == EOF; } should exhibit (apparently-)identical behavior to C95 program #include <stdio.h> int...
    37 KB (3,659 words) - 13:55, 23 October 2024
  • Declaring Attributes of Functions". Retrieved 2009-01-03. #include <stdio.h> #include <stdarg.h> /* print all args one at a time until a negative argument is...
    11 KB (1,298 words) - 05:31, 9 November 2024
  • Include directive (redirect from .h)
    statements: // include the C standard header 'stdio.h'; probably is a file with that name #include <stdio.h> // include the C++ standard header 'vector';...
    14 KB (1,679 words) - 19:07, 18 October 2024
  • string.h) or a BSD extension called sys_errlist. The translation can be printed directly to the standard error stream using perror (defined in stdio.h). As...
    11 KB (1,399 words) - 11:57, 10 November 2024
  • on sequential lines, but an escape sequence has advantages. #include <stdio.h> int main() { printf("Foo%cBar", 0x0A); return 0; } The \n escape sequence...
    11 KB (1,240 words) - 19:55, 8 April 2024
  • Berkeley sockets (redirect from Socket.h)
    <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include...
    29 KB (3,515 words) - 07:54, 25 October 2024
  • standard input is 0 (zero); the POSIX <unistd.h> definition is STDIN_FILENO; the corresponding C <stdio.h> abstraction is provided via the FILE* stdin...
    22 KB (2,491 words) - 19:21, 11 October 2024
  • operator in C can be seen from the following code. Example: #include <stdio.h> void showbits( unsigned int x ) { int i=0; for (i = (sizeof(int) * 8)...
    16 KB (1,864 words) - 21:04, 12 July 2024
  • the "else" block under "try". #include <setjmp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> static void first(); static void second(); /*...
    15 KB (1,609 words) - 01:14, 29 September 2024
  • File descriptor (redirect from Fcntl.h)
    waitid() (with P_PIDFD ID type, Linux) fdopen() (stdio function:converts file descriptor to FILE*) dprintf() (stdio function: prints to file descriptor) select()...
    13 KB (1,189 words) - 18:01, 30 October 2024
  • world\n"); } A standard-conforming "hello, world" program is: #include <stdio.h> int main(void) { printf("hello, world\n"); } The first line of the program...
    100 KB (11,128 words) - 00:16, 7 November 2024
  • Thumbnail for C syntax
    have to pass a pointer to that pointer: its address. #include <stdio.h> #include <stdlib.h> void allocate_array(int ** const a_p, const int A) { /* allocate...
    80 KB (10,441 words) - 23:53, 3 November 2024
  • Thumbnail for GNU Debugger
    the following source-code written in C: #include <stdio.h> #include <stdlib.h> #include <string.h> size_t foo_len( const char *s ) { return strlen( s...
    17 KB (1,679 words) - 14:18, 30 October 2024
  • standard input and prints each of them out on separate lines: #include <stdio.h> int main(void) { int n; while (scanf("%d", &n) == 1) printf("%d\n", n);...
    12 KB (1,379 words) - 20:39, 18 May 2024
  • Solaris with GCC and Solaris Studio. main.c: #include <stdio.h> #include <stdlib.h> #include "power_slow.h" int main(int argc, char **argv) { fprintf(stderr...
    12 KB (1,606 words) - 10:44, 8 July 2023
  • Thumbnail for Circular buffer
    Both functions take care about the capacity of the buffer : #include <stdio.h> enum { N = 10 }; // size of circular buffer int buffer [N]; // note: only...
    13 KB (1,441 words) - 06:20, 17 October 2024
  • h> #include <string.h> #include <stdio.h> #include <unistd.h> #include <assert.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/un.h>...
    20 KB (2,319 words) - 15:36, 29 September 2024
  • Thumbnail for LOLCODE
    to local environment encoding HAI 1.2 CAN HAS STDIO? VISIBLE "HAI WORLD!" KTHXBYE HAI 1.2 CAN HAS STDIO? PLZ OPEN FILE "LOLCATS.TXT"? AWSUM THX VISIBLE...
    13 KB (1,140 words) - 09:26, 16 October 2024
  • then return 0; // 2> /dev/null; fi #define e ?> #define b */ #include <stdio.h> #define main() int main(void) #define printf printf( #define true ) #define...
    28 KB (2,936 words) - 03:56, 8 November 2024
  • and tests their divisibility with the modulus (%) operator. #include <stdio.h> int main (void) { int i; for (i = 1; i < 10; i++) { if (i % 3 == 0) printf...
    11 KB (1,440 words) - 17:28, 23 October 2024
  • functionality of the standard library using modules. C++ <iostream>, unlike C <stdio.h>, relies on a global format state. This fits very poorly together with...
    22 KB (2,701 words) - 18:39, 2 November 2024
  • file: #include <stdio.h> int main(void) { printf("Hello, World!\n"); return 0; } The preprocessor replaces the line #include <stdio.h> with the textual...
    29 KB (3,521 words) - 17:07, 8 July 2024
  • declared array, avoiding a buffer overflow when copying characters: #include <stdio.h> int main(int argc, char **argv) { char buffer[10]; /* Array of 10 chars...
    13 KB (1,859 words) - 11:55, 13 April 2024
  • file would be generated by the following code: #include <windows.h> #include <stdio.h> // Import function that adds two numbers extern "C" __declspec(dllimport)...
    34 KB (4,326 words) - 12:53, 25 October 2024
  • 80000002h-80000004h), and software should not rely on it. #include <stdio.h> #include <string.h> #include <cpuid.h> int main() { unsigned int regs[12]; char str[sizeof(regs)+1];...
    222 KB (12,429 words) - 18:49, 10 November 2024
  • repository at GitHub has more recent changes, starting in July 2019. #include <stdio.h> int main() { char c; while (c != 'x'); { c = getchar(); if (c = 'x') return...
    4 KB (359 words) - 11:12, 18 June 2024
  • Pthreads (redirect from Pthread.h)
    use of pthreads in C: #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <pthread.h> #include <unistd.h> #define NUM_THREADS 5 void *perform_work(void...
    9 KB (1,086 words) - 21:48, 21 October 2024
  • correct result if compiled with no optimizing, i.e., at -O0): #include <stdio.h> typedef int (*fn_int_to_int)(int); // type of function int->int fn_int_to_int...
    50 KB (6,372 words) - 19:23, 17 September 2024
  • sorted(deck): shuffle(deck) An implementation in C: #include <stdio.h> #include <stdlib.h> #include <time.h> // executes in-place bogo sort on a given array static...
    15 KB (1,881 words) - 22:16, 9 November 2024