Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include "Ztring/Ztring.h"
- int main()
- {
- unsigned char * words = file_get_contents ("words10.txt");
- FILE *output = file_open ("words10-digits.txt", "w+");
- int len = strlen(words);
- int pos = 0;
- char word [13] = {0};
- while (pos < len)
- {
- pos = str_getline (words, word, sizeof(word), pos);
- for (int id = 0; id < 100; id++) {
- fprintf (output, "%s%02d\n", word, id);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement