void showEnt(char *name, struct stat *tampon) { if (iinfo) printf("%8ld ",tampon->st_ino ); if (linfo){ char* atime_str; const struct tm *ptr; ptr = localtime(&(tampon->st_atime)); strftime(atime_str ,100 ,"%b %e %H:%M", ptr ); printf("%c%s%10ld %s ", getType(tampon->st_mode), getMode(tampon->st_mode), tampon->st_size, atime_str); } fputs(name,stdout); if (S_ISDIR(tampon->st_mode)) putchar('/'); putchar('\n'); }