ls
, cd
, pwd
, mkdir
, cp
, mv
, rm
, touch
, and man
. Further commands such as locate
, cat
, hexdump
and find
.
clang -Wall -pedantic -std=c99 program.c -o mainOr
gcc -Wall -pedantic -std=c99 program.c -o main* Compile and executed the program
lec01/var.c
clang var.c && ./a.out
clang var.c -o var ./var ./var; echo $? ./var 1 2 3; echo $? ./var aaa; echo $?
-E
and -S
options
strip
tool to reduce the program size. Evaluate -OS
compiler flag.
For the gedit
, you cannot configure the formatting of the source according to the CPL recommendation coding style using clang-format
using script available in the archive setup_gedit.zip. You can download the archive, unzip the file, and execute the script as follows:
wget http://cw.fel.cvut.cz/wiki/_media/courses/be5b99cpl/labs/setup_gedit.zip unzip setup_gedit.zip ./setup_gedit.sh
lec01/types.c
, lec01/points.c
lec01/main_env.c
scanf()
and report message to stdout
and stderr
scanf()
and printf()
, read integer values and report average values computed to 2 decimal places.
argc
, argv
)
stdin
using getchar()
and write them to stdout
using putchar()
. Consider the program for copying files.
Implement programs in exercises and programming Projects of Chapters 2 and 3 of the K.K. King textbook.