common.c

来自「pc 透過simens mobile phone 連線,可直接傳訊.」· C语言 代码 · 共 28 行

C
28
字号
/*************************************************************************** *   copyright           : (C) 2002 by Hendrik Sattler                     * *   mail                : post@hendrik-sattler.de                         * *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/#include <stdio.h>#include <stdarg.h>#include <string.h>#include "common.h"void add_at_command(char *at_command_p, char *addon_p,...){  va_list arg_list;  va_start(arg_list,addon_p);  vsprintf(&at_command_p[strlen(at_command_p)],addon_p,arg_list);  va_end(arg_list);}void new_at_command(char *at_command_p, char *addon_p){  memcpy(&at_command_p[0],AT_PREFIX,sizeof(AT_PREFIX));  add_at_command(at_command_p,addon_p);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?