CheatSheets.pdf - Cheat Sheets(Provided Standard IO Cheat Sheet FILE*fopen(const char*path const char*mode int fscanf(FILE*stream const char*format

CheatSheets.pdf - Cheat Sheets(Provided Standard IO Cheat...

This preview shows page 1 - 2 out of 2 pages.

Cheat Sheets (Provided) Standard IO Cheat Sheet FILE *fopen(const char *path, const char *mode); int fscanf(FILE *stream, const char *format, ...); char *fgets(char *s, int size, FILE *stream); int sscanf(const char *str, const char *format, ...); int fputs(const char *s, FILE *stream); int fprintf(FILE *stream, const char *format, ...); int fclose(FILE *fp); Assembly Cheat Sheet Registers: %eax, %ecx, %edx, %ebx, %esi, %edi, %esp, %ebp Assembler Directives: .align, .long, .pos Data movement: irmovl, rrmovl, rmmovl, mrmovl Integer instructions: addl, subl, multl, divl, modl Branch instructions: jmp, jle, jl, je, jne, jge, jg Reading/Writing instructions: rdch, rdint, wrch, wrint Other: pushl, popl, call, ret, halt Ascii code for newline character: 0x0a Ascii code for space: 0x20 Process Cheat Sheet pid_t fork(void); pid_t wait(int *status); pid_t waitpid(pid_t pid, int *status, int options); int execvp(const char *file, char *const argv[]);
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Spring '17
  • John P. Dickerson
  • ASCII, const char

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture