CISC 220 Lecture Notes - Lecture 19: C Data Types, Standard Streams, Scanf Format String

19 views2 pages

Document Summary

Week 6 class 1 - intro to c (continued) Advanced shell scripting lots of file renaming to do in order to make things testable in batches. Prof showed us testsubmissions , a script to rename files and get rid of unnecessary information reminder: >&2 sends it to the standard error stream find all scripts and unpack the tarballs subscript: simplifyallnames. Scanf review scanf: first argument specifies the format. second argument is the address. %d %d (can have multiple things scanned in) returns eof if you hit the end of file before reading values. Otherwise, a number of values can be read. Potential errors: reaching eof, reading wrong type of input. Error checking is a big part of c: many of the programs/code that you will be writing in c will be used in utilities or in programs that other people use.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents