Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
post-callback.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>

Functions

void init_string (struct string *s)
 
size_t write_callback (void *ptr, size_t size, size_t nmemb, struct string *s)
 
int main (void)
 

Variables

const char data [] ="this is what we post to the silly web server"
 Make it with: gcc -o post-callback post-callback.c -lcurl. More...
 

Function Documentation

void init_string ( struct string *  s)

References malloc().

Referenced by main().

int main ( void  )
size_t write_callback ( void *  ptr,
size_t  size,
size_t  nmemb,
struct string *  s 
)

Referenced by main().

Variable Documentation