mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-28 07:22:20 +00:00
11 lines
305 B
C
11 lines
305 B
C
#include <stdint.h>
|
|
|
|
typedef uintptr_t person_handle_t;
|
|
|
|
person_handle_t person_new(char* name, int age);
|
|
void person_delete(person_handle_t p);
|
|
|
|
void person_set(person_handle_t p, char* name, int age);
|
|
char* person_get_name(person_handle_t p, char* buf, int size);
|
|
int person_get_age(person_handle_t p);
|