file da vedere mentre ero in classe
This commit is contained in:
16
da_vedere
16
da_vedere
@@ -10,4 +10,18 @@ FLAG2 = -o
|
|||||||
clear:
|
clear:
|
||||||
rm -f -- per esempio
|
rm -f -- per esempio
|
||||||
|
|
||||||
vedi union, esercizi stringa, file, little e bigendian, dati esadecimali.
|
|
||||||
|
|
||||||
|
struct ind_addr
|
||||||
|
struct sockaddr_in castato in struct sockaddr
|
||||||
|
|
||||||
|
socket.h
|
||||||
|
funzione int socket()..
|
||||||
|
int connect
|
||||||
|
int bind
|
||||||
|
int listen
|
||||||
|
|
||||||
|
|
||||||
|
esercizio con scambo dati tra due processi mediante file e comunicazione mediante segnali
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
14
test/test.c
14
test/test.c
@@ -1,12 +1,18 @@
|
|||||||
#include <stdio.h>
|
#include <ctype.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
||||||
int main (int index, char** in_data){
|
int main (int index, char** in_data){
|
||||||
|
|
||||||
char buf[50];
|
|
||||||
fscanf(stdin,"%10[^\n]",buf);
|
|
||||||
fprintf(stdout,"%s",buf);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user