remove : remove « stdio.h « C Tutorial






ItemValue
Header filestdio.h
Declarationint remove(const char *fname);
Functiondelete file by *fname.
Returnreturns zero on success or nonzero on error.


#include <stdio.h>

  int main(int argc, char *argv[])
  {
    if(remove("test"))
           printf("Remove Error");

    return 0;
  }








22.28.remove
22.28.1.remove