I try to make a system call with the word write but the compiler throws an error and says that error:
passing argument 1 of 'write' makes integer from pointer without a cast
#include <stdio.h>
#include <unistd.h>
#include <time.h>
#include <inttypes.h>
#include <conio.h>
int main(){
uint64_t segundos;
segundos = time(NULL);
write(stdout, "Segundos desde 1970: %d",segundos);
getch();
return 0;
}