橘子味的心
标题:C库函数 atexit()

C库函数 atexit()

#include <stdio.h>
#include <stdlib.h>

void functionA () {
   printf("This is functionA\n");
}

int main () {

   /* register the termination function */
   atexit(functionA );

   printf("Starting  main program...\n");
   printf("Exiting main program...\n");

   return(0);
}

目录

分类