General Rule: Read the “All About Homework” handout!
For the Linux questions, you must submit a file called “Linux.txt” (if you put your answers in a text file) or “Linux.pdf” (if you use a word processor; in this case, do not submit the word processor file, but instead save the file as PDF). In homework 1, we received “.doc”, “.rtf”, and “.pages” files. We graded them this time. We will not do so from here on! Also, do not save a “.rtf” file as a “.txt” file; if the “.txt” file is garbled (with binary data or RTF commands) we will not grade it. And do not submit images unless you identify in the text or PDF file exactly what those files are.
For the C Programming Language questions, name your files correctly If you do the MyProgrammingLab questions, submit the file “MyProgLab.txt” or “MyProgLab.pdf” (it can contain anything; we will not look in the file). If you do the book questions, name the file “CPL.txt” (if you put your answers in a text file) or “CPL.pdf” (if you use a word processor; in this case, do not submit the word processor file, but instead save the file as PDF
For the Programming part, name your files correctly, as otherwise Gradebot will not work (you’ll get a message like “no rule to make targer”). Also, when you submit them, submit them as the source file (or files) ending in “.c” or “.h”, as appropriate. Do not submit a text file, a PDF file, or a screenshot!
String library functions
String tokenization: strtok(src, delim); program strtok.c
Arrays of strings
int main(int argc, char *argv) (same as int main(int argc, char **argv))
Example programs: echo.c, echo2.c
Modify printfile2.c to get file names from command line (printfile3.c)