Making sure not to use the C library calls directly