File: testdict.c

package info (click to toggle)
gman 0.9.3-5.3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 652 kB
  • sloc: ansic: 7,389; makefile: 131; perl: 105
file content (13 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*************** testdict.c ******************/

#include "list.h"
#include <stdio.h>

void main()
{
	Dictionary * dict;
	dict = new Dictionary;
	dict->add_item("/usr/man",(void *)100);
	dict->add_item("/usr/local/man",(void * )200);
	printf("size = %d, /usr/man = %d\n",dict->get_size(),dict->get_value("/usr/local/man"));
}