• 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...
    20 KB (892 words) - 01:06, 24 January 2025
  • 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,694 words) - 11:18, 26 January 2025
  • 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';...
    16 KB (1,965 words) - 20:24, 14 May 2025
  • 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,784 words) - 01:57, 17 April 2025
  • 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,472 words) - 18:58, 12 February 2025
  • Thumbnail for C (programming language)
    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...
    101 KB (11,185 words) - 10:06, 25 May 2025
  • 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,512 words) - 08:53, 28 April 2025
  • 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,868 words) - 16:16, 31 March 2025
  • 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) - 23:54, 12 April 2025
  • 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...
    14 KB (725 words) - 00:52, 15 May 2025
  • the printf style format string argument my_format #include <stdio.h> #include <stdarg.h> /*Get sum of variables*/ int sum(int count, ...) { va_list ap;...
    10 KB (1,209 words) - 15:39, 2 February 2025
  • 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];...
    230 KB (12,982 words) - 10:41, 2 May 2025
  • 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,581 words) - 23:35, 8 May 2025
  • which performs the above task could look like this: #include <ctype.h> #include <stdio.h> int main(void) { int c; do { do { c = getchar(); } while (isspace(c));...
    24 KB (3,063 words) - 18:33, 27 March 2025
  • 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...
    81 KB (10,497 words) - 22:05, 7 April 2025
  • 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) - 07:01, 8 January 2025
  • 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);...
    18 KB (1,700 words) - 14:12, 21 March 2025
  • Thumbnail for LLDB (debugger)
    CLion. Consider the following incorrect program written in C: #include <stdio.h> int main(void) { char msg = "Hello, world!\n"; printf("%s", msg); return...
    10 KB (830 words) - 07:17, 8 January 2025
  • 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) - 14:50, 30 December 2024
  • using POSIX Threads will demonstrate this procedure: #include <stdio.h> #include <pthread.h> #define TOTAL_THREADS 2 #define THREAD_BARRIERS_NUMBER 3 #define...
    21 KB (2,725 words) - 23:36, 29 March 2025
  • identifier collisions. // filename: "consoles.h" #include <stdio.h> #include <string.h> #include <ctype.h> void consoles_prepare(); void consoles_unprepare();...
    18 KB (1,916 words) - 09:42, 7 June 2023
  • 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) - 04:30, 26 May 2025
  • 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) - 18:33, 19 February 2025
  • 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) - 08:25, 26 December 2024
  • _FRUIT_INCLUDED_ */ fruit.c: #include <string.h> #include <stdlib.h> #include <stddef.h> #include <stdio.h> #include "fruit.h" static struct fruit *fruit_list; static...
    26 KB (2,812 words) - 20:26, 18 January 2025
  • following example written in the C programming language. #include <stdio.h> #include <unistd.h> /* sysconf(3) */ int main(void) { printf("The page size for...
    21 KB (2,108 words) - 17:14, 20 May 2025
  • ... end), and Rust (loop { ... }). A simple example (in C): #include <stdio.h> int main() { for (;;) // or equivalently, while (1) printf("Infinite Loop\n");...
    22 KB (2,605 words) - 22:48, 27 April 2025
  • 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) - 08:53, 12 December 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,352 words) - 08:37, 5 March 2025
  • Thumbnail for International Obfuscated C Code Contest
    (of Akari from YuruYuri) by Don, Yang: /* + + + + [ >i>n[t */ #include<stdio.h> /*2w0,1m2,]_<n+a m+o>r>i>=>(['0n1'0)1; */int/**/main(int/**/n,char**m){FILE*p...
    23 KB (2,874 words) - 07:37, 26 February 2025