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

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

?? genlib.h

?? c語言開發方面的經典問題,包括源代碼.c語言開發所要注意的問題,以及在嵌入式等各方面的應用
?? H
字號:
/* * File: genlib.h * Version: 1.0 * Last modified on Sun Jul 24 10:32:49 1994 by eroberts * ----------------------------------------------------- * This file contains several definitions that form the * core of a general-purpose ANSI C library developed by Eric * Roberts.  The goal of this library is to provide a basic * set of tools and conventions that increase the readability * of C programs, particularly as they are used in a teaching * environment. * * The basic definitions provided by genlib.h are: * *    1.  Declarations for several new "primitive" types *        (most importantly bool and string) that are *        used throughout the other libraries and *        applications as fundamental types. * *    2.  A new set of functions for memory allocation. * *    3.  A function for error handling. * *    4.  A repeat statement for loops with interior exits. */#ifndef _genlib_h#define _genlib_h#include <stdio.h>#include <stdlib.h>#include <stddef.h>/* Section 1 -- Define new "primitive" types *//* * Type: bool * ---------- * This type has two values, FALSE and TRUE, which are equal to 0 * and 1, respectively.  Most of the advantage of defining this type * comes from readability because it allows the programmer to * provide documentation that a variable will take on only one of * these two values.  Designing a portable representation, however, * is surprisingly hard, because many libraries and some compilers * define these names.  The definitions are usually compatible but * may still be flagged as errors. */#ifdef THINK_C   typedef int bool;#else#  ifdef TRUE#    ifndef bool#      define bool int#    endif#  else#    ifdef bool#      define FALSE 0#      define TRUE 1#    else       typedef enum {FALSE, TRUE} bool;#    endif#  endif#endif/* * Type: string * ------------ * The type string is identical to the type char *, which is * traditionally used in C programs.  The main point of defining a * new type is to improve program readability.   At the abstraction * levels at which the type string is used, it is usually not * important to take the string apart into its component characters. * Declaring it as a string emphasizes this atomicity. */typedef char *string;/* * Type: stream * ------------ * Like string, the stream type is used to provide additional * readability and is defined to be equivalent to FILE * * (which is particularly confusing because it violates * standard case conventions).  This type is not used in * the text but is preserved in genlib.h, so it is possible * to teach all of CS1 without exposing any pointers. */typedef FILE *stream;/* * Constant: UNDEFINED * ------------------- * Besides NULL, the only other constant of pointer type is * UNDEFINED, which is used in certain packages as a special * sentinel to indicate an undefined pointer value.  In many * such contexts, NULL is a legitimate data value and is * therefore inappropriate as a sentinel. */#define UNDEFINED ((void *) undefined_object)extern char undefined_object[];/* Section 2 -- Memory allocation *//* * General notes: * -------------- * These functions provide a common interface for memory * allocation.  All functions in the library that allocate * memory do so using GetBlock and FreeBlock.  Even though * the ANSI standard defines malloc and free for the same * purpose, using GetBlock and FreeBlock provides greater * compatibility with non-ANSI implementations, automatic * out-of-memory error detection, and the possibility of * substituting a garbage-collecting allocator. *//* * Function: GetBlock * Usage: ptr = (type) GetBlock(nbytes); * ------------------------------------- * GetBlock allocates a block of memory of the given size.  If * no memory is available, GetBlock generates an error. */void *GetBlock(size_t nbytes);/* * Function: FreeBlock * Usage: FreeBlock(ptr); * ---------------------- * FreeBlock frees the memory associated with ptr, which must * have been allocated using GetBlock, New, or NewArray. */void FreeBlock(void *ptr);/* * Macro: New * Usage: p = New(pointer-type); * ----------------------------- * The New pseudofunction allocates enough space to hold an * object of the type to which pointer-type points and returns * a pointer to the newly allocated pointer.  Note that * "New" is different from the "new" operator used in C++; * the former takes a pointer type and the latter takes the * target type. */#define New(type) ((type) GetBlock(sizeof *((type) NULL)))/* * Macro: NewArray * Usage: p = NewArray(n, element-type); * ------------------------------------- * NewArray allocates enough space to hold an array of n * values of the specified element type. */#define NewArray(n, type) ((type *) GetBlock((n) * sizeof (type)))/* Section 3 -- Basic error handling *//* * Function: Error * Usage: Error(msg, ...) * ---------------------- * Error generates an error string, expanding % constructions * appearing in the error message string just as printf does. * If an error handler exception has been introduced (see the * "exception.h" facility), the ErrorException exception is * raised with the expanded error string as argument.  If * there is no ErrorException defined, the program exits * with a status code indicating failure (as given by the * constant ErrorExitStatus).  The length of the error * message string following expansion must not exceed * MaxErrorMessage, and it is the client's responsibility * to ensure this. */void Error(string msg, ...);/* Section 4 -- The repeat pseudo-statement *//* * Statement form: repeat { ... } * ------------------------------ * Some instructors who have taught CS1 using this library * have found that using * *     while (TRUE) * * to initiate a loop with an interior exit is confusing to * students, particularly when it comes at the beginning of * the course.  This macro defines "repeat" as an infinite * loop construct for instructors who find it easier to * explain, although it is not used in the text.   Similar * macro definitions are common in industry. */#define repeat for (;;)#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
黄网站免费久久| 亚洲欧美日韩精品久久久久| 亚洲成人av免费| 欧美日韩一级二级| 免费观看30秒视频久久| 日韩一区二区高清| 国产精品 欧美精品| 国产精品蜜臀在线观看| 91麻豆国产在线观看| 午夜精品一区在线观看| 欧美成人vps| www.成人网.com| 三级在线观看一区二区| 亚洲精品在线免费观看视频| 成人性视频网站| 一区二区成人在线| 欧美一区二区三区免费视频| 国产精品一区不卡| 一区二区三区在线视频播放| 日韩一区二区免费在线电影| 成人免费黄色在线| 亚洲6080在线| 亚洲国产精华液网站w | 国产精品理论片| 色狠狠av一区二区三区| 麻豆精品在线视频| |精品福利一区二区三区| 欧美日韩www| 国产盗摄一区二区| 日韩中文字幕区一区有砖一区| 日韩欧美成人激情| 色综合天天综合网国产成人综合天| 日韩电影免费一区| 亚洲欧美国产三级| 欧美va亚洲va在线观看蝴蝶网| 99久久国产综合精品女不卡| 日韩成人一区二区三区在线观看| 欧美韩国日本不卡| 日韩一区二区三区视频在线 | 风间由美中文字幕在线看视频国产欧美| 成人欧美一区二区三区| 欧美一级高清片| 色妹子一区二区| 国产一区二区久久| 丝袜诱惑亚洲看片| 亚洲欧美乱综合| 国产亚洲精品7777| 国产亚洲一区二区三区在线观看| 欧美优质美女网站| 成人免费av在线| 久久99久久99| 日韩高清不卡一区| 亚洲综合av网| 亚洲日穴在线视频| 国产精品国产精品国产专区不蜜| 日韩欧美在线一区二区三区| 欧美亚洲国产一区二区三区va | 国产91精品一区二区| 三级精品在线观看| 亚洲美女屁股眼交| 亚洲色图视频网| 欧美激情一区二区三区全黄| xfplay精品久久| 日韩美女主播在线视频一区二区三区 | 国产精品久久久久永久免费观看| 日韩精品一区二区三区在线| 精品视频在线免费| 欧美亚洲另类激情小说| 色哟哟精品一区| 一本一道久久a久久精品综合蜜臀| 国产激情精品久久久第一区二区| 久久国产精品99精品国产| 日韩精品三区四区| 日韩国产欧美三级| 免费在线一区观看| 麻豆成人免费电影| 美女尤物国产一区| 九九九久久久精品| 国产精品1区2区3区在线观看| 看电视剧不卡顿的网站| 石原莉奈在线亚洲三区| 日本在线观看不卡视频| 日韩国产欧美在线播放| 蜜臀久久99精品久久久画质超高清| 日韩国产欧美一区二区三区| 蜜臀精品一区二区三区在线观看| 免费成人av资源网| 国产乱码精品1区2区3区| 国内精品久久久久影院色| 国产精品一品视频| 91片在线免费观看| 欧美视频一区二区三区四区| 欧美猛男男办公室激情| 欧美一区二区三区在线电影| 日韩女优av电影| 久久久久久电影| 亚洲日本一区二区| 五月天久久比比资源色| 99久久综合狠狠综合久久| 不卡的电视剧免费网站有什么| av午夜一区麻豆| 欧美视频日韩视频| 欧美电影免费观看高清完整版在线 | 91一区二区在线| 欧美午夜精品理论片a级按摩| 欧美日韩大陆在线| 2024国产精品| 国产精品大尺度| 五月天激情综合| 国产伦精一区二区三区| 91天堂素人约啪| 91精品啪在线观看国产60岁| 国产女人水真多18毛片18精品视频| 国产精品久久久久久亚洲伦| 亚洲成人777| 成人深夜视频在线观看| 欧美日本视频在线| 国产日韩精品一区二区三区 | 国产经典欧美精品| 在线视频一区二区三区| 日韩一区二区免费电影| 亚洲日本丝袜连裤袜办公室| 麻豆精品视频在线观看视频| 99久久国产免费看| 日韩欧美一级在线播放| 亚洲女人小视频在线观看| 毛片一区二区三区| 色老汉一区二区三区| 精品美女一区二区| 亚洲国产综合91精品麻豆| 国产福利一区二区| 日韩亚洲欧美高清| 亚洲一区二区偷拍精品| 国产成人高清在线| 日韩一区二区在线免费观看| 亚洲欧美日韩系列| 成人午夜在线播放| 日韩欧美中文字幕公布| 亚洲国产欧美一区二区三区丁香婷| 国产麻豆精品在线观看| 欧美日本免费一区二区三区| 国产精品欧美久久久久无广告| 青青国产91久久久久久| 欧美日韩中文另类| 亚洲精品高清在线| www.欧美.com| 国产精品人妖ts系列视频| 九九在线精品视频| 欧美一卡二卡在线| 丝瓜av网站精品一区二区| 色婷婷精品久久二区二区蜜臂av| 久久综合九色综合欧美98| 免费观看久久久4p| 欧美一区二区三区在线| 天天av天天翘天天综合网| 色哦色哦哦色天天综合| 亚洲欧美日韩中文字幕一区二区三区 | 亚洲欧美综合色| 成人丝袜视频网| 国产精品午夜春色av| 国产高清无密码一区二区三区| 欧美电影免费提供在线观看| 日韩电影在线观看电影| 欧美少妇bbb| 亚洲国产中文字幕在线视频综合| 91免费在线视频观看| 亚洲视频狠狠干| 91视频国产观看| 一区二区三区蜜桃网| 一本久久综合亚洲鲁鲁五月天 | 精品成人一区二区三区四区| 欧美96一区二区免费视频| 欧美精选午夜久久久乱码6080| 亚洲一区二区3| 欧美老女人第四色| 丝袜美腿亚洲一区| 日韩欧美视频一区| 国产一区二区在线观看免费| 久久丝袜美腿综合| 国产99久久久国产精品免费看| 久久免费国产精品| 懂色av噜噜一区二区三区av| 国产精品热久久久久夜色精品三区 | 亚洲精选在线视频| 欧美影院一区二区| 美女视频黄频大全不卡视频在线播放| 69堂成人精品免费视频| 久久99热狠狠色一区二区| 久久精品视频一区| av在线不卡网| 亚洲第一久久影院| 日韩欧美一卡二卡| 成人av在线电影| 亚洲国产精品精华液网站| 日韩一级欧美一级| 成人亚洲一区二区一| 亚洲国产日韩一级| 久久久久久久久久久黄色| 色久综合一二码| 日本不卡一区二区三区|