亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产精品每日更新| 国产a精品视频| 国产精品888| 欧美日韩国产影片| 日本一区免费视频| 日本大胆欧美人术艺术动态| 95精品视频在线| www一区二区| 青青草原综合久久大伊人精品 | 欧美色电影在线| 国产日韩欧美麻豆| 蜜桃一区二区三区在线| 色婷婷综合在线| 国产精品久久久久久久久免费相片| 天天av天天翘天天综合网色鬼国产 | 在线亚洲免费视频| 中文成人av在线| 国产一区二区三区日韩| 91精品国产乱| 亚洲成精国产精品女| 91在线观看视频| 国产欧美日韩精品a在线观看| 美日韩黄色大片| 欧美一级高清片| 天天色天天爱天天射综合| 欧美唯美清纯偷拍| 亚洲午夜一区二区三区| 色综合久久久久网| 亚洲欧洲无码一区二区三区| 国产不卡免费视频| 国产欧美日韩精品在线| 粉嫩av一区二区三区在线播放| 日韩免费看的电影| 国产在线国偷精品产拍免费yy| 欧美xxxxxxxxx| 免费成人结看片| 日韩一级高清毛片| 久热成人在线视频| 精品国产区一区| 国产在线一区二区| 国产欧美综合在线观看第十页| 国产福利电影一区二区三区| 久久久久久一二三区| 成人美女在线视频| 悠悠色在线精品| 色婷婷综合激情| 亚洲成人免费av| 欧美精品电影在线播放| 精东粉嫩av免费一区二区三区| 久久久影视传媒| 99久久精品免费看| 午夜精品久久久久久久| 日韩欧美美女一区二区三区| 国产综合色精品一区二区三区| 国产日产欧美一区| 色婷婷亚洲一区二区三区| 亚洲永久精品国产| 日韩色视频在线观看| 国产在线观看一区二区| 亚洲欧美日韩国产综合在线| 欧美日韩国产一二三| 国产一区三区三区| 一区二区三区欧美久久| 日韩一区二区免费在线观看| 国产美女精品人人做人人爽| 亚洲三级电影全部在线观看高清| 在线观看亚洲成人| 黑人精品欧美一区二区蜜桃| 国产精品―色哟哟| 91精品午夜视频| 成人免费视频一区二区| 亚洲成人av在线电影| 久久精品人人做人人综合| 色婷婷精品大视频在线蜜桃视频| 日韩电影一二三区| 亚洲欧洲成人精品av97| 日韩美一区二区三区| 91黄色免费版| 国产精品中文字幕一区二区三区| 一区二区三区自拍| 国产亚洲一区二区三区| 欧美午夜精品免费| 国产成人av资源| 日韩成人伦理电影在线观看| 亚洲欧洲精品一区二区三区不卡 | 日精品一区二区三区| 国产精品毛片高清在线完整版| 在线成人免费视频| 色婷婷av久久久久久久| 国产91精品一区二区麻豆网站 | 日韩区在线观看| 在线一区二区三区四区| 国产白丝精品91爽爽久久| 日本不卡一二三| 午夜精品福利在线| 一区二区在线免费观看| 国产精品视频第一区| 精品国产一区久久| 4438成人网| 91福利社在线观看| www.欧美日韩| 国产成人亚洲综合a∨婷婷图片| 毛片不卡一区二区| 午夜视黄欧洲亚洲| 亚洲综合视频网| 一区二区三区欧美亚洲| 国产精品欧美久久久久无广告| 精品国产亚洲在线| 久久一区二区三区四区| 欧美变态tickle挠乳网站| 91精品国产综合久久福利软件| 欧美性三三影院| 欧美性淫爽ww久久久久无| 日本丶国产丶欧美色综合| 色婷婷综合久久久中文一区二区| 99久久777色| 91麻豆swag| 欧美羞羞免费网站| 欧美精品国产精品| 日韩欧美国产一区在线观看| 日韩欧美电影一二三| 欧美v国产在线一区二区三区| 91精品黄色片免费大全| 日韩视频一区在线观看| 日韩欧美成人一区二区| 久久一区二区三区四区| 欧美国产1区2区| 亚洲同性同志一二三专区| 亚洲人成人一区二区在线观看| |精品福利一区二区三区| 亚洲九九爱视频| 调教+趴+乳夹+国产+精品| 久久精品99久久久| 国产一区不卡在线| 99视频有精品| 欧美日韩一区二区电影| 日韩一级黄色大片| 国产精品嫩草影院com| 一区二区三区在线观看欧美| 天堂一区二区在线免费观看| 久久精品国产色蜜蜜麻豆| 国产69精品久久久久毛片 | 国产91丝袜在线播放九色| 91丨九色丨蝌蚪丨老版| 欧美日韩黄色一区二区| 久久亚洲精品国产精品紫薇| 国产精品色哟哟网站| 五月婷婷激情综合| 国产精品主播直播| 欧美日韩免费视频| 久久久99精品免费观看不卡| 亚洲色图一区二区三区| 天堂蜜桃一区二区三区| 国产69精品久久久久毛片 | 国产午夜久久久久| 亚洲一区在线观看免费观看电影高清| 久久国产乱子精品免费女| av综合在线播放| 日韩欧美色综合网站| 亚洲精品乱码久久久久久黑人| 老司机午夜精品99久久| 91片在线免费观看| 日韩精品一区国产麻豆| 一区二区三区在线影院| 国产精品自拍三区| 欧美一区二区三区免费观看视频| 国产欧美日韩亚州综合| 秋霞影院一区二区| 欧洲色大大久久| 国产精品久久久久三级| 麻豆精品视频在线观看免费| 色欧美片视频在线观看 | 亚洲美女淫视频| 国产激情91久久精品导航| 884aa四虎影成人精品一区| 亚洲美女电影在线| 成人午夜又粗又硬又大| 日韩欧美一二区| 天天综合网 天天综合色| 色国产精品一区在线观看| 久久精品亚洲乱码伦伦中文 | 怡红院av一区二区三区| 成人自拍视频在线观看| 欧美大肚乱孕交hd孕妇| 日韩激情在线观看| 欧美性色黄大片手机版| 一区二区三区免费看视频| 国产mv日韩mv欧美| 久久精品这里都是精品| 国产一区二区在线观看视频| 日韩欧美中文字幕制服| 日韩精品一卡二卡三卡四卡无卡| 91亚洲精品久久久蜜桃| 中文字幕一区二区三区四区| 国产69精品久久99不卡| 日本一区二区视频在线观看| 国产美女主播视频一区| 久久综合九色综合久久久精品综合| 视频一区在线视频| 91精品国产入口在线|