亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? strlib.h

?? c語言開發方面的經典問題,包括源代碼.c語言開發所要注意的問題,以及在嵌入式等各方面的應用
?? H
字號:
/* * File: strlib.h * Version: 1.0 * Last modified on Fri Jul 15 14:10:40 1994 by eroberts * ----------------------------------------------------- * The strlib.h file defines the interface for a simple * string library.  In the context of this package, strings * are considered to be an abstract data type, which means * that the client relies only on the operations defined for * the type and not on the underlying representation. *//* * Cautionary note: * ---------------- * Although this interface provides an extremely convenient * abstraction for working with strings, it is not appropriate * for all applications.  In this interface, the functions that * return string values (such as Concat and SubString) do so * by allocating new memory.  Over time, a program that uses * this package will consume increasing amounts of memory * and eventually exhaust the available supply.  If you are * writing a program that runs for a short time and stops, * the fact that the package consumes memory is not a problem. * If, however, you are writing an application that must run * for an extended period of time, using this package requires * that you make some provision for freeing any allocated * storage. */#ifndef _strlib_h#define _strlib_h#include "genlib.h"/* Section 1 -- Basic string operations *//* * Function: Concat * Usage: s = Concat(s1, s2); * -------------------------- * This function concatenates two strings by joining them end * to end.  For example, Concat("ABC", "DE") returns the string * "ABCDE". */string Concat(string s1, string s2);/* * Function: IthChar * Usage: ch = IthChar(s, i); * -------------------------- * This function returns the character at position i in the * string s.  It is included in the library to make the type * string a true abstract type in the sense that all of the * necessary operations can be invoked using functions. Calling * IthChar(s, i) is like selecting s[i], except that IthChar * checks to see if i is within the range of legal index * positions, which extend from 0 to StringLength(s). * IthChar(s, StringLength(s)) returns the null character * at the end of the string. */char IthChar(string s, int i);/* * Function: SubString * Usage: t = SubString(s, p1, p2); * -------------------------------- * SubString returns a copy of the substring of s consisting * of the characters between index positions p1 and p2, * inclusive.  The following special cases apply: * * 1. If p1 is less than 0, it is assumed to be 0. * 2. If p2 is greater than the index of the last string *    position, which is StringLength(s) - 1, then p2 is *    set equal to StringLength(s) - 1. * 3. If p2 < p1, SubString returns the empty string. */string SubString(string s, int p1, int p2);/* * Function: CharToString * Usage: s = CharToString(ch); * ---------------------------- * This function takes a single character and returns a * one-character string consisting of that character.  The * CharToString function is useful, for example, if you * need to concatenate a string and a character.  Since * Concat requires two strings, you must first convert * the character into a string. */string CharToString(char ch);/* * Function: StringLength * Usage: len = StringLength(s); * ----------------------------- * This function returns the length of s. */int StringLength(string s);/* * Function: CopyString * Usage: newstr = CopyString(s); * ------------------------------ * CopyString copies the string s into dynamically allocated * storage and returns the new string.  This function is not * ordinarily required if this package is used on its own, * but is often necessary when you are working with more than * one string package. */string CopyString(string s);/* Section 2 -- String comparison functions *//* * Function: StringEqual * Usage: if (StringEqual(s1, s2)) ... * ----------------------------------- * This function returns TRUE if the strings s1 and s2 are * equal.  For the strings to be considered equal, every * character in one string must precisely match the * corresponding character in the other.  Uppercase and * lowercase characters are considered to be different. */bool StringEqual(string s1, string s2);/* * Function: StringCompare * Usage: if (StringCompare(s1, s2) < 0) ... * ----------------------------------------- * This function returns a number less than 0 if string s1 * comes before s2 in alphabetical order, 0 if they are equal, * and a number greater than 0 if s1 comes after s2.  The * ordering is determined by the internal representation used * for characters, which is usually ASCII. */int StringCompare(string s1, string s2);/* Section 3 -- Search functions *//* * Function: FindChar * Usage: p = FindChar(ch, text, start); * ------------------------------------- * Beginning at position start in the string text, this * function searches for the character ch and returns the * first index at which it appears or -1 if no match is * found. */int FindChar(char ch, string text, int start);/* * Function: FindString * Usage: p = FindString(str, text, start); * ---------------------------------------- * Beginning at position start in the string text, this * function searches for the string str and returns the * first index at which it appears or -1 if no match is * found. */int FindString(string str, string text, int start);/* Section 4 -- Case-conversion functions *//* * Function: ConvertToLowerCase * Usage: s = ConvertToLowerCase(s); * --------------------------------- * This function returns a new string with all * alphabetic characters converted to lower case. */string ConvertToLowerCase(string s);/* * Function: ConvertToUpperCase * Usage: s = ConvertToUpperCase(s); * --------------------------------- * This function returns a new string with all * alphabetic characters converted to upper case. */string ConvertToUpperCase(string s);/* Section 5 -- Functions for converting numbers to strings *//* * Function: IntegerToString * Usage: s = IntegerToString(n); * ------------------------------ * This function converts an integer into the corresponding * string of digits.  For example, IntegerToString(123) * returns "123" as a string. */string IntegerToString(int n);/* * Function: StringToInteger * Usage: n = StringToInteger(s); * ------------------------------ * This function converts a string of digits into an integer. * If the string is not a legal integer or contains extraneous * characters, StringToInteger signals an error condition. */int StringToInteger(string s);/* * Function: RealToString * Usage: s = RealToString(d); * --------------------------- * This function converts a floating-point number into the * corresponding string form.  For example, calling * RealToString(23.45) returns "23.45".  The conversion is * the same as that used for "%G" format in printf. */string RealToString(double d);/* * Function: StringToReal * Usage: d = StringToReal(s); * --------------------------- * This function converts a string representing a real number * into its corresponding value.  If the string is not a * legal floating-point number or if it contains extraneous * characters, StringToReal signals an error condition. */double StringToReal(string s);#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕在线不卡一区二区三区| 依依成人综合视频| 亚洲欧美另类在线| 九九国产精品视频| 91蜜桃在线观看| www一区二区| 天天av天天翘天天综合网 | 国产一二精品视频| 在线亚洲免费视频| 国产亚洲精品aa| 奇米888四色在线精品| 色综合天天天天做夜夜夜夜做| 日韩精品专区在线影院重磅| 亚洲一区在线观看免费观看电影高清| 国产主播一区二区| 制服丝袜亚洲网站| 亚洲一区二区av电影| 粉嫩蜜臀av国产精品网站| 欧美一区二区三区视频免费| 一区二区三区精品| 成a人片国产精品| 国产午夜精品一区二区三区嫩草 | 国产精品五月天| 老司机精品视频一区二区三区| 在线国产电影不卡| 亚洲日本在线看| a亚洲天堂av| 国产精品网站在线播放| 国产精品一区二区久激情瑜伽| 日韩一级免费一区| 视频在线观看91| 欧美理论片在线| 亚洲国产三级在线| 欧美色综合久久| 亚洲成人第一页| 精品视频在线免费看| 一区二区三区在线观看欧美| 波多野结衣的一区二区三区| 国产精品久久久久久久久搜平片| 成人一区在线看| 国产精品天天摸av网| 成人激情免费网站| 亚洲欧洲无码一区二区三区| 99久久99久久免费精品蜜臀| 中文字幕色av一区二区三区| 成人国产精品免费观看| 综合久久一区二区三区| 色国产综合视频| 亚洲成国产人片在线观看| 欧美日本在线视频| 久久99精品国产.久久久久| 欧美sm极限捆绑bd| 国产不卡免费视频| 国产精品久久看| 欧美私模裸体表演在线观看| 日韩成人一区二区| 精品国产三级电影在线观看| 国产毛片精品一区| 亚洲天堂中文字幕| 欧美精品三级日韩久久| 精品无人区卡一卡二卡三乱码免费卡| 久久久欧美精品sm网站| av男人天堂一区| 丝袜美腿成人在线| 久久久天堂av| 欧美性受xxxx| 国产一区二区不卡老阿姨| 日韩美女视频一区| 欧美一区二区视频在线观看2020| 国产精品影视天天线| 亚洲黄色性网站| 欧美一区二区三区四区久久 | 免费观看一级特黄欧美大片| 久久精品人人爽人人爽| 色哟哟一区二区| 久久精品噜噜噜成人av农村| 国产精品污网站| 日韩视频一区二区三区| 99久久免费国产| 老司机免费视频一区二区三区| 国产精品二三区| 欧美一区二区三区四区在线观看 | 久久综合综合久久综合| 亚洲少妇中出一区| 精品久久久久久久久久久久久久久久久 | 国产激情偷乱视频一区二区三区 | 26uuu精品一区二区| 91丨porny丨首页| 另类小说欧美激情| 亚洲福利一区二区三区| 中文子幕无线码一区tr| 在线不卡一区二区| 色婷婷综合激情| 国产成人免费视频网站高清观看视频| 亚洲va中文字幕| 综合亚洲深深色噜噜狠狠网站| 欧美精品一区二区三区视频| 精品视频免费在线| 99久久久精品| 国产成人在线电影| 免费高清不卡av| 亚洲va欧美va国产va天堂影院| 中文字幕在线一区免费| 久久综合九色欧美综合狠狠| 在线综合视频播放| 欧美美女直播网站| 色老综合老女人久久久| 成+人+亚洲+综合天堂| 国产成a人亚洲精品| 国产精品一区二区男女羞羞无遮挡| 天堂一区二区在线免费观看| 亚洲高清免费在线| 亚洲午夜久久久久久久久电影网 | 97国产一区二区| 国产成人精品亚洲日本在线桃色| 麻豆成人免费电影| 蜜桃视频一区二区三区| 免费高清在线视频一区·| 蜜臀av一级做a爰片久久| 蜜臂av日日欢夜夜爽一区| 日韩中文字幕91| 日本在线播放一区二区三区| 青青草伊人久久| 欧美96一区二区免费视频| 日av在线不卡| 奇米一区二区三区| 另类欧美日韩国产在线| 精品一区二区在线观看| 久久99精品国产麻豆婷婷洗澡| 国产在线一区观看| 国产精品18久久久| www.久久久久久久久| 91香蕉国产在线观看软件| 91官网在线免费观看| 欧美日韩视频在线一区二区| 制服丝袜日韩国产| 久久亚洲影视婷婷| 中文字幕中文字幕在线一区| 伊人婷婷欧美激情| 亚洲一区二区三区在线| 日韩中文字幕一区二区三区| 国产一区二区看久久| 成人动漫在线一区| 欧洲中文字幕精品| 精品美女一区二区| 自拍偷拍亚洲综合| 午夜精品久久久久久久久久久| 久久精品国产亚洲一区二区三区| 国内欧美视频一区二区| 95精品视频在线| 欧美日韩国产天堂| 久久精品欧美一区二区三区麻豆| 亚洲免费观看高清完整版在线观看| 亚洲一区在线看| 舔着乳尖日韩一区| 国产精品99久| 欧美日韩国产首页在线观看| 亚洲人成亚洲人成在线观看图片| 麻豆精品视频在线| 91小视频免费看| 中文字幕av资源一区| 日本高清无吗v一区| 91精品国产综合久久福利| 亚洲国产精品精华液ab| 亚洲一区二区欧美| 国产精品亚洲综合一区在线观看| 欧洲一区在线电影| 精品日韩欧美一区二区| 中国av一区二区三区| 久久机这里只有精品| 91麻豆国产精品久久| 欧美v日韩v国产v| 亚洲欧洲精品天堂一级| 久久国产欧美日韩精品| 日本精品一区二区三区高清| 久久久亚洲高清| 日韩精品高清不卡| 91蝌蚪porny九色| 久久久美女艺术照精彩视频福利播放| 欧美色窝79yyyycom| 国产一区不卡在线| 国产高清无密码一区二区三区| 日本高清不卡在线观看| 日本一区二区电影| 九九**精品视频免费播放| 久久久亚洲精品一区二区三区| 亚洲黄色尤物视频| 99久久国产免费看| 国产精品福利av| 岛国一区二区三区| 国产午夜亚洲精品不卡| 国产一区在线精品| 日韩一区二区三区高清免费看看| 亚洲一区自拍偷拍| 97se亚洲国产综合自在线不卡| 欧美极品美女视频| 粉嫩高潮美女一区二区三区| 久久亚洲一区二区三区明星换脸 | 欧洲精品一区二区三区在线观看| 国产精品久久久久桃色tv|