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

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

?? strlib.h

?? c語言開發(fā)方面的經典問題,包括源代碼.c語言開發(fā)所要注意的問題,以及在嵌入式等各方面的應用
?? 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一区二区三区免费野_久草精品视频
久久精品人人做人人爽人人| fc2成人免费人成在线观看播放| 91蝌蚪porny| 成人欧美一区二区三区小说| 色综合久久综合中文综合网| 亚洲精品欧美在线| 5566中文字幕一区二区电影| 久久精品国内一区二区三区| 久久网站热最新地址| 成人app网站| 午夜精品久久久久久久99水蜜桃 | 久久av老司机精品网站导航| 精品国产乱码久久久久久图片| 国产美女主播视频一区| 中文字幕乱码亚洲精品一区| 一本一道综合狠狠老| 人禽交欧美网站| 久久久.com| 欧美亚洲精品一区| 久久国产夜色精品鲁鲁99| 久久精品欧美一区二区三区不卡| www.成人在线| 日韩中文字幕av电影| 国产三级久久久| 欧美羞羞免费网站| 国产乱子伦视频一区二区三区| 国产精品短视频| 日韩一区二区免费在线电影| 成人丝袜视频网| 日韩激情视频在线观看| 国产精品三级在线观看| 欧美日韩国产综合视频在线观看| 国产成人免费高清| 午夜影院久久久| 国产精品久久久久aaaa| 欧美精品在线观看一区二区| 粉嫩一区二区三区性色av| 亚洲无人区一区| 国产精品私人自拍| 欧美电视剧免费全集观看| 91视频在线看| 国产成人aaa| 美女视频黄 久久| 亚洲影院免费观看| 国产精品久久免费看| 欧美大白屁股肥臀xxxxxx| 色婷婷久久久亚洲一区二区三区| 精品一区二区影视| 日日摸夜夜添夜夜添亚洲女人| 国产精品久久久久久久裸模| 久久亚洲精品小早川怜子| 欧美日韩视频第一区| 欧美一区二区观看视频| 91小视频免费看| 成人av影院在线| 国产一区二区三区四区五区美女| 男男gaygay亚洲| 视频一区免费在线观看| 玉足女爽爽91| 亚洲视频一区二区在线| 国产欧美日韩亚州综合| 精品国产91乱码一区二区三区 | 91久久奴性调教| 国产成人免费av在线| 国产一区在线观看视频| 日韩电影免费在线看| 天堂成人免费av电影一区| 夜色激情一区二区| 一区二区三区美女| 亚洲欧美日韩中文播放| 国产清纯在线一区二区www| 亚洲精品在线三区| 久久亚洲精品小早川怜子| www国产成人| 久久久久久夜精品精品免费| 久久综合九色综合97婷婷女人| 日韩三级免费观看| 精品电影一区二区| 久久精品免视看| 中文无字幕一区二区三区| 久久麻豆一区二区| 国产午夜精品福利| 国产精品传媒视频| 有坂深雪av一区二区精品| 亚洲乱码国产乱码精品精98午夜| ...av二区三区久久精品| 日韩一区欧美一区| 亚洲黄色性网站| 天堂在线亚洲视频| 久久99在线观看| 成人网男人的天堂| 在线观看国产91| 91精品国产丝袜白色高跟鞋| 日韩一区二区免费在线观看| 26uuuu精品一区二区| 欧美激情一区二区| 亚洲精品欧美二区三区中文字幕| 成人激情免费电影网址| 成人激情开心网| 欧美视频一区二区三区四区 | 91精品国产综合久久国产大片| 日韩午夜激情电影| 国产精品久久久久婷婷| 亚洲国产精品一区二区www| 欧美a级一区二区| 国产成人综合在线播放| 91小视频免费观看| 欧美一区二区福利视频| 久久精品视频免费观看| 亚洲最快最全在线视频| 激情综合色综合久久综合| 不卡在线观看av| 欧美福利视频一区| 国产精品的网站| 奇米在线7777在线精品| 成人动漫中文字幕| 91精品国产欧美日韩| 国产精品美女久久久久久久久久久 | 日韩福利电影在线观看| 国产精品一品二品| 欧美性大战xxxxx久久久| 26uuu久久综合| 亚洲成av人片www| 成人伦理片在线| 7777精品伊人久久久大香线蕉| 国产欧美综合色| 日韩经典中文字幕一区| 99久久精品国产精品久久| 日韩欧美一级特黄在线播放| 中文字幕不卡在线观看| 日韩电影在线观看网站| 91免费观看在线| 亚洲国产高清aⅴ视频| 首页综合国产亚洲丝袜| 99麻豆久久久国产精品免费优播| 欧美一级免费观看| 亚洲精品久久久久久国产精华液| 久久国产成人午夜av影院| 欧美性生交片4| 国产精品国模大尺度视频| 久久97超碰色| 欧美精品高清视频| 一区二区三国产精华液| 成人免费视频caoporn| 精品国精品国产| 免费在线成人网| 欧美情侣在线播放| 亚洲免费观看高清完整版在线| 国产高清一区日本| 精品成人a区在线观看| 日本在线不卡视频一二三区| 91成人看片片| 一区二区三区精密机械公司| 成人美女视频在线看| 国产日韩欧美精品综合| 国产一区日韩二区欧美三区| 日韩一区二区三区视频| 天天影视网天天综合色在线播放| 色天天综合色天天久久| 亚洲女人****多毛耸耸8| 99精品视频在线观看| 欧美国产激情一区二区三区蜜月| 国产在线国偷精品免费看| 精品va天堂亚洲国产| 久久电影网站中文字幕| 欧美大片在线观看一区二区| 麻豆91在线播放| 欧美大尺度电影在线| 久久精品久久精品| 久久精品夜夜夜夜久久| 成人精品免费看| 国产精品免费丝袜| 色综合中文字幕国产 | 色综合久久久网| 尤物av一区二区| 欧美美女一区二区| 美女www一区二区| 26uuu亚洲综合色| 处破女av一区二区| 亚洲图片另类小说| 欧美日韩大陆在线| 久久电影国产免费久久电影| 2021久久国产精品不只是精品| 国产成人综合网站| 一区二区三区久久| 宅男噜噜噜66一区二区66| 国内精品自线一区二区三区视频| 久久天堂av综合合色蜜桃网| 高潮精品一区videoshd| 亚洲三级理论片| 欧美一级欧美三级在线观看| 国产suv精品一区二区6| 日韩一区在线免费观看| 91超碰这里只有精品国产| 久久99国产精品成人| 1024亚洲合集| 日韩欧美激情在线| 波多野结衣中文字幕一区二区三区 | 日韩va亚洲va欧美va久久| 久久综合九色综合欧美98|