Reducing scope
Preincrement/decrement instead of postincrement/decrement
C style pointer casting
strncpy() '/0' terminated
sscanf() to prevent overflow