25_pdfsam_cs2022_lectures - Rounding floor, ceil Square...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
stdio.h Console I/O printf, scanf, gets, puts File manipulation fopen, fclose, remove, rename Text file I/O fprintf, fscanf, fgets, fputs Binary file I/O fread, fwrite, fgetc String I/O sprintf, sscanf
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
string.h Concatenation strcat, strncat Comparison strcmp, strncmp Searching strchr, strrchr, strstr Copying strcpy, strncpy, memcpy, memmove Length strlen
Background image of page 2
stdlib.h Type conversion atoi, atol, atof Random number generation rand, srand Memory allocation malloc, free Searching, sorting qsort, bsearch Process control exit, system
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
math.h Absolute value abs, fabs Exponentiation, logarithms pow, log, log10 Trig functions cos, sin, tan, sinh, cosh, acos, asin, atan, etc.
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Rounding floor, ceil Square root sqrt time.h Reading current time and date time Time comparison difftime Time conversion gmtime, mktime, asctime File I/O in C Open the file using fopen() fopen() returns a file handle that you use to perform I/O Perform any I/O operations Most of the input and output routines weve seen have a version for file I/O: fprintf(), fscanf(), fgets(), fputs(), etc. Routines expect a file handle as the first parameter Close the file using fclose() Frees memory associated with the file handle Writes may not actually occur until file is closed...
View Full Document

This note was uploaded on 01/10/2010 for the course CS 2022 at Cornell University (Engineering School).

Page1 / 6

25_pdfsam_cs2022_lectures - Rounding floor, ceil Square...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online