📄 readkeyvalue.c
字号:
#include <stdlib.h>#include <stdio.h>#include <string.h>#include "fastDNAml_types.h"boolean readKeyValue (char *string, char *key, char *format, void *value) { /* readKeyValue */ if (! (string = strstr(string, key))) return FALSE; string += strlen(key); if (! (string = strchr(string, '='))) return FALSE; string++; return sscanf(string, format, value); /* 1 if read, otherwise 0 */ } /* readKeyValue */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -