I tried the command
cat tmp/file{1..3} > newFile
and works perfect
But when i compile and execute the following c program
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void main() {
char command[40];
int num_of_points = 3;
sprintf(command,"cat tmp/file{1..%d} > file.Ver",num_of_points);
system(command);
}
the message
cat: tmp/file{1..3}: No such file or directory
appears
It seems like system does not make brace expansion