compile a directory & run

files=”” && ls -1 *.c|while read line; do files=”$line $files”; done && $(gcc -Wall $(echo $files) -o bin.x) && echo -ne “Running bin.x\n” && ./bin.x > bin.log & zsh saves variables. bash doesn’t. files=”” && ls -1 *.c|while read line; do files=”$files $line”; echo $files > files.lst; done && gcc -v -Wall `tail -n 1 […]

Why is it safer to use sizeof(*pointer) in malloc It is safer becuse you don’t have to mention the type name twice and don’t have to build the proper spelling for “dereferenced” version of the type. For example, you don’t have to “count the stars” in Compare that to the type-based sizeof in where you have too make sure you used the right number of * under sizeof. […]