Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
281 B
3
Indexable
Never
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/types.h>

void plik(){
	FILE *file = popen("sort nazwa.c","r");
	char buff[1024];
	fread(buff,sizeof(char),1023,file);
	buff[51]='\0';
	printf("%s\n",buff);
	pclose(file);
}

int main(void){
	plik();
	return 0;
}