#include #include #define LIMIT 999 #define BUF_LIM 512 int main(void){ FILE* f = fopen("nombres.txt", "w"); int r; char* buffer = (char*) malloc(BUF_LIM*sizeof(char)); if(f!=NULL){ for(int i=0; i