Commented on libc functions used