fprintf demo : File fprintf fscanf « File « C / ANSI-C






fprintf demo


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

int main() {
    int value;

    value = 1;
    if (value < 0)
        fprintf(stderr, "Fatal Error:Abort\n");

    exit(8);

    printf("We did not die\n");
    return (0);
}


           
       








Related examples in the same category

1.Use fprintf and fscanf to save and read file