代码拉取完成,页面将自动刷新
/* File name: LCString.h
* Last Modified Date: July 11th, 2022
* Author: Robot_Steve
* Description: Header file containing functions in this library.
*/
#include <stdlib.h>
#include <stdio.h>
#ifndef TyString_Header
#define TyString_Header
typedef struct String {
char* stringData;
unsigned int length;
} string;
#ifdef __cplusplus
extern "C" {
#endif
// Initialize String
string initStr();
// Add new char to string
void addChar(string *str, char elem);
// Add new string to string
void addStr(string *str, char *elem);
// Copy a string object
string strCopy(const string *str);
// Get string data
char* getData(const string *str);
// Used to locate a string in the original data to determine its location
int find(const string *Str, char *findStr);
// Replace the specified content in the original string with another string
void replace(string *str, char *elem, char *newelem);
// Clear the contents of the String class
void clearStr(string *str);
// Get string length
int len(string *str);
#ifdef __cplusplus
}
#endif
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。