From 204b456c7c08bc40ffe1f21575461d92a544e92b Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 9 Mar 2005 21:30:05 +0000 Subject: Initial runtime checkin. --- runtime/docs/examples/map.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 runtime/docs/examples/map.c (limited to 'runtime/docs/examples/map.c') diff --git a/runtime/docs/examples/map.c b/runtime/docs/examples/map.c new file mode 100644 index 00000000..ca661d05 --- /dev/null +++ b/runtime/docs/examples/map.c @@ -0,0 +1,7 @@ + +/* create a map with a max of 100 elements */ +MAP mymap = map_new(100, INT64); + +/* mymap[birth year] = 2000 */ +map_key_str (mymap, "birth year"); +map_set_int64 (mymap, 2000); -- cgit