Skip to content

Instantly share code, notes, and snippets.

@ox
Created December 12, 2012 23:51
Show Gist options
  • Save ox/4272810 to your computer and use it in GitHub Desktop.
Save ox/4272810 to your computer and use it in GitHub Desktop.
the client struct
#ifndef _CLIENT_H
#define _CLIENT_H
#include "order.h"
struct Client {
char * name;
int id;
double credit;
struct book_node * successful, * failed;
// clients->storage[index]
};
struct Client * client_new(char * name, int id, double credit);
void client_destroy(void * a);
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment