?? utils.c
字號:
/**//// @file utils.c// @author RA Sewell// @brief Butterfly MP3 utility routines//// Target(s)...: ATmega169//// Compiler....: AVR-GCC 3.3.1; avr-libc 1.0//// Revisions...: 1.0//// YYYYMMDD - VER. - COMMENT - SIGN.//// 20060304 - 1.0 - Created - KS// **/#include "main.h"#include "types.h"/******************************************************************************* Function name : strLen** Returns : Length of string** Parameters : None** Purpose : Find the length of a string (excluding NULL char)******************************************************************************/uint16 strLen(uint8 *str){ uint16 len; for (len = 0; str[len] != 0x00; len++); return (len);}/******************************************************************************* Function name : strCatChar** Returns : None** Parameters : None** Purpose : Append a byte to a string buffer******************************************************************************/void strCatChar(uint8 *str, uint8 byte){ uint16 len; len = strLen(str); str[len] = byte; str[len+1] = '\0';}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -