📄 store.c
字号:
#include <stdio.h>#include "../lib/error.h"#include "../lib/hash.h"#include "../lib/nat.h"#include "../lib/mystdlib.h"#include "store.h"struct store{ hash h;};store newStore (){ store st = checkedMalloc (sizeof (*st)); st->h = newHash (); return st;}nat storeLookup (store st, str id){ return hashLookup (st->h, id);} void storeUpdate (store st, str id, nat n){ hashInsert (st->h, id, n);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -