char out[1024];
FILE* wc=popen("wc -c someFile.txt","r"); // calls the command and returns a FILE pointer pointing to its std out
fgets(out,1024,wc); // read the first line of the output
pclose(wc); // close the FILE. (note: if the command is long-running, this will wait for it to exit before continuing)
printf("%s\n",out);