This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int main( int argc, char **argv ) | |
{ | |
FILE *in_file; | |
char ch; | |
int len; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <windows.h> | |
#include <stdlib.h> | |
int main(int argc, char **argv) | |
{ | |
char s; //buffer | |
HANDLE file; //Handle del file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <windows.h> | |
#include <direct.h> | |
int main(int argc, char **argv) | |
{ | |
HANDLE handleFind; | |
WIN32_FIND_DATA findFileData; | |
char *dir; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdio.h> | |
int main(int argc, CHAR *argv[]) | |
{ | |
HANDLE hFile; | |
char DataBuffer[] = "This ia s test string to be written."; | |
DWORD dwBytesToWrite = (DWORD) strlen(DataBuffer); | |
DWORD dwBytesWritten = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// As seen on http://www.di.uniba.it/~reti/LabProRete/Interazione(TCP)Client-Server_Portabile.pdf | |
#if defined WIN32 | |
#include <winsock.h> | |
#else | |
#define closesocket close | |
#include <sys/socket.h> | |
#include <arpa/inet.h> | |
#include <unistd.h> | |
#endif | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <time.h> | |
char greeting[] = "Hello there\n1. Receive wisdom\n2. Add wisdom\nSelection >"; | |
char prompt[] = "Enter some wisdom\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
val x = 1 | |
in | |
let | |
(* Essendo statico, si salva (y, x, E=((x,1))). Quando andra' a risolvere questo metodo, assegnera' x ad 1. *) | |
val y = (fn z => x) | |
in | |
let | |
val x = 2 | |
in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(let ((x 1)) | |
(let | |
((y #' (lambda (z) (+ 0 x) ) )) | |
(let ((x 2)) | |
(funcall y 3) ; Returns 2 | |
))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* More info? | |
* [email protected] | |
* http://aspyct.org | |
* @aspyct (twitter) | |
* | |
* Hope it helps :) | |
*/ | |
#include <stdio.h> |
OlderNewer