readkeyvalue.c

来自「fastDNAml is an attempt to solve the sam」· C语言 代码 · 共 15 行

C
15
字号
#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 + =
减小字号Ctrl + -
显示快捷键?