Last active
January 21, 2017 23:53
-
-
Save ixn/adf3793533ac6c2ef7772e0eaa1317de to your computer and use it in GitHub Desktop.
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
/* | |
Internal Function | |
*/ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
/* | |
Pendefinisian data_t disini agar compiler mengenali | |
data_t sebagai variable struct yang bisa digunakan. | |
*/ | |
struct _data_t; | |
typedef struct _data_t data_t; | |
/* Alokasi data baru, kalo di cpp biasanya menggunakan method new(); */ | |
data_t* | |
penjumlahan_new(); | |
/* Hapus alokasi data, kalo di cpp biasanya menggunakan method delete(); */ | |
void | |
penjumlahan_delete(data_t *data); | |
void | |
penjumlahan_set_angka_1(data_t *data, int data1); | |
void | |
penjumlahan_set_angka_2(data_t *data, int data2); | |
int | |
penjumlahan_proses(data_t *data); | |
int | |
penjumlahan_get_data1(data_t *data); | |
int | |
penjumlahan_get_data2(data_t *data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment