Notice
Recent Posts
Recent Comments
Creative Code
stack.h(스택-메모리함수사용) 본문
#ifndef STACK_H
#define STACK_H
typedef struct stack {
void *array;
int tos;
int size;
int eleSize;
}Stack;
void initStack(Stack *s, int size, int eleSize);
void cleanupStack(Stack *s);
void push(Stack *s, void *pData);
void pop(Stack *s, void *pData);
//void push(Stack *s, int data);
//void pop(Stack *s, int *pData);
#endif