Tag Archives: gnu

other programs in C for UNIX / Linux

read #include <unistd.h> #include<stdlib.h> int main() { char buffer[128];  int nread;      nread=read(0,buffer,128); if(nread==-1)      write(2,”Un problema de lectura ha sucedido\n”,34); if(write(1,buffer,nread))!=nread)  write(2,”Un problema de escritura ha sucedido\n”,37); exit(0); } write #include<unistd.h> #include<stdlib.h> int main() { if((write(1,”Aquí hay datos\n”,14))!=14) … Continue reading

Posted in GNU/Linux/Open Source, τεχνολογια :: Technology | Tagged , , , , , , , | Leave a comment