language

Some fools attempt at an interpreted language
Log | Files | Refs

test.c (294B)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <stdio.h>

#include "ns.h"

int main( void )
{
	ns_t* test = ns_init(10);

	ns_push(test, 5);

	ns_push(test, 2);

	printf("%d\n", test->last->size);

	ns_pop(test);
	
	printf("%d\n", test->last->size);

	ns_pop(test);

	printf("%d\n", test->last->size);

	ns_del(test);

	return 0;
}