mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 20:52:22 +00:00
14 lines
430 B
C
14 lines
430 B
C
// Copyright © 2017 ChaiShushan <chaishushan{AT}gmail.com>.
|
|
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
|
|
|
#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);
|