This file contains hidden or 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 "openssl/ssl.h" | |
| #include "openssl/bio.h" | |
| #include "openssl/err.h" | |
| #include "stdio.h" | |
| #include "string.h" | |
| int main() | |
| { | |
| BIO * bio; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | all: | |
| gcc -Wall http_client.c -o http_client | |
| clean: | |
| rm *.o;rm http_client | |
  
    
      This file contains hidden or 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 <WinSock2.h> | |
| #include <stdio.h> | |
| #pragma comment(lib,"ws2_32.lib") | |
| int main() | |
| { | |
| //构造socket | |
| WSADATA data; | |
| SOCKET sock; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | /* | |
| http://www.gnu.org/software/libc/manual/html_node/Streams-and-File-Descriptors.html | |
| 11.1.1 Streams and File Descriptors | |
| When you want to do input or output to a file, you have a choice of two basic mechanisms for | |
| representing the connection between your program and the file: file descriptors and streams. | |
| File descriptors are represented as objects of type int, while streams are represented as | |
| FILE * objects. | 
  
    
      This file contains hidden or 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> | |
| #define SMARTY_SIZE_INIT 16 | |
| typedef struct { | |
| char * str; // a null terminated C string | |
| char * end; // a pointer to the null byte, to be able to repeatedly append | |
| // without using strlen() every time. | |
| size_t size; // currently allocated size for *str, so we know when we | 
  
    
      This file contains hidden or 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 <stdlib.h> | |
| #include <stdio.h> | |
| #include "string.h" | |
| string *readline() { | |
| string *buf = str_create(""); | |
| int c; | |
| for(c = getchar(); c != EOF && c != '\n'; c = getchar()) { | |
| str_cappend(buf, c); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | /***************************************************************************************************** | |
| * | |
| * Sample: | |
| * ======= | |
| *#include <stdio.h> | |
| *#include "StringFunctions.h" | |
| * | |
| * | |
| *int main(){ | |
| * char* orginal = "Hans hatte heute Wurst zum Frühstück"; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | //&>/dev/null;x="${0%.*}";[ ! "$x" -ot "$0" ]||(rm -f "$x";cc -o "$x" "$0")&&"$x" $*;exit | |
| #import <stdio.h> | |
| #import <stdlib.h> | |
| char* joinStrings(char** strings, int numStrings, char* seperator) { | |
| // Handle empty case which would cause problems. | |
| if (numStrings == 0) | |
| return ""; | |
  
    
      This file contains hidden or 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 <string.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include "string_sj.h" | |
| int str_split(const char* src, const char* delims, char*** dest) { | |
| char *s = strdup(src); | |
| char *c, *saveptr, *tmp; | |
| void *_tmp; | |
| int num_tokens = 0, num_size = 10; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> | 
NewerOlder