Справочник функций

Ваш аккаунт

Войти через: 
Забыли пароль?
Регистрация
Информацию о новых материалах можно получать и без регистрации:

Почтовая рассылка

Подписчиков: -1
Последний выпуск: 19.06.2015

Четвертый BORLAND С++ и его окружение

gcvt Преобразует число с плавающей точкой в строку
    DOS UNIX Win16 #include<stdlib.h>
    OS/2 Win32    char *gcvt(double value,int ndec,char
             *buf)
geninterrupt Вызывает программное прерывание
    DOS Win16    #include<dos.h>
    OS/2 Win32    void geninterrupt(int intr_num)
getc Получает символ из потока
    DOS UNIX Win16 #include<stdio.h>
    OS/2 Win32    int getc(FILE *stream)
    ANSI C++ ANSI C
getcbrk Получает параметры контроля прерывания по <Ctrl/Break>
    DOS Win16
             #include <dos.h>
             int getcbrk(void);
getch Вводит символ с консоли без эхо-отображения на экране
    DOS
    Win32       #include<conio.h>
             int getch(void);
getchar Получает символ из потока stdin
    DOS UNIX     #include<stdin.h>
    OS/2 Win32    int getchar(void);
    ANSI C++ ANSI C
getche Получает символ с клавиатуры и отображает его на экран
    DOS
    OS/2 Win32    #include<conio.h>
    ANSI C      int getche(void);
getcurdir Определяет текущий каталог для указанного диска
    DOS Win16    #include<dir.h>
    OS/2 Win32    int getcurdir(int drive,char *directory);
getcwd Получает текущий рабочий каталог
    DOS Win16     #include<dir.h>
    OS/2 Win32    char *getcwd(char *buf,int buflen);
getdate Смотpи _dos_getdate
_getdcwd Определяет текущий каталог для указанного диска
    DOS Win16    #include<direct.h>
    OS/2 Win32    char* _getdcwd(int drive, char *buffer,
                              int buflen);
getdfree Получает размер свободного места на диске
    DOS Win16    #include<dos.h>
    OS/2 Win32    void getdfree(unsigned char drive,
                       struct dfree *dtable);
getdis,setdisk Получает или устанавливает текущий номер диска
    DOS Win16    #include<dir.h>
    OS/2 Win32    int getdisk(void);
             int setdisk(int drive)
getdta Получает адрес пересылки диска
    DOS Win16     #include<dos.h>
             char far *getdta(void);
getenv Получает строку из среды
    DOS UNIX Win16 #include<stdlib.h>
    OS/2 Win32    char *getenv(const char *name);
    ANSI C++ ANSI C
getfat Получает информацию из таблицы размещения файлов указанного диска
    DOS Win16
             #include<dos.h>
             void getfat(unsigned char drive,
                     struct fatinfo *dtable);
getfatd Получает информацию из таблицы размещения файлов
    DOS Win16
             #include<dos.h>
             void getfatd(struct fatinfo *dtable);
getftime,setftime Получает и устанавливает дату и время создания файла
    DOS Win16
    OS/2 Win32    #include<io.h>
             int getftime(int handle,struct ftime *ftimep);
             int setftime(int handle,struct ftime *ftimep);
getpass Считывает пароль
    DOS UNIX     #include <conio.h>
    OS/2 Win32    char *getpass(const char *prompt);
getpid Получает идентификатор процесса программы
    DOS UNIX Win16 #include<process.h>
    OS/2 Win32    unsighned getpid<void>
getpsp Получает префикс программного сегмента
    DOS Win16    #include<dos.h>
             unsigned *getpsp(void);
gets Получает строку из потока stdin
    DOS UNIX Win16 #include<stdio.h>
    OS/2 Win32    char *gets(char *s);
    ANSI C++ ANSI C
gettext Копирует текст c экрана в текстовом режиме в память
    DOS
    OS/2 Win32    #include<conio.h>
             int gettext(int left, int top, int right,
                 int bottom, void *destin);
gettextinfo Получает видеоинформацию о текстовом режиме
    DOS        #include<conio.h>
    OS/2 Win32    void gettextinfo(struct text_info *r);
gettime,settime Получает и устанавливает системное время
    gettime      #include<dos.h>
             void gettime(struct time *timep);
    DOS Win16
    OS/2 Win32
              ---***---
    settaime     #include<dos.h>
             void settime(struct time *timep);
    DOS Win16
    OS/2 Win32
getvect,setvect Получает и устанавливает вектор прерывания
    DOS Win16    #include<dos.h>
    OS/2       void interrupt(*getvect(int interruptno))();
             void setvect(int interruptno, void
                     nterrupt (*isr) ());
getverify Получает состояние флага проверки DOS
    DOS Win16    #include <dos.h>
    OS/2 Win32    int getverify(void);
getw Получает целое число из потока
    DOS UNIX Win16 #include<stdio.h>
    OS/2 Win32    int getw(FILE *stream);
gmtime Преобразует дату и время во время по стандарту Гринвича (GMT)
    DOS UNIX Win16
    OS/2 Win32    #include<time.h>
    ANSI C++ ANSI C struct tm *gmtime(const time_t *timer);
gotoxy Позиционирует курсор в текстовом окне
    DOS Win16    #include <conio.h>
    OS/2 Win32    void gotoxy(int x, int y);
_heapadd Пpисоединяет блок к куче.
             #include<malloc.h>
    OS/2 Win32    int _heapadd(void *block, size_t size);
heapcheck Просматривает и проверяет кучу
    DOS        #include<alloc.h>
    OS/2 Win32    int heapcheck (void);
heapcheckfree Проверяет свободные блоки кучи на заполнение заданным значением
    DOS
    OS/2 Win32    #include<alloc.h>
             int heapcheckfree (unsigned int fillvalue);
heapchecknode Ищет и проверяет отдельный узел кучи
    DOS UNIX Win16 #include<alloc.h>
    OS/2 Win32    int heapchecknode (void *node);
    ANSI C
_heapchk Ограничивает и верифицирует кучу.
    DOS UNIX Win16 #include <malloc.h>
    OS/2 C++ Win32 int _headpchk(void);
heapfillfree Заполняет свободные блоки кучи заданным значением
    DOS        #include<alloc.h>
    OS/2 Win32    int heapfillfree(unsigned int fillvalue);
_heapmin Освобождает неиспользованное пространство кучи
    DOS UNIX Win16
    OS/2 Win32    #include <malloc.h>
    ANSI C++ ANSI C int _headpmin(void);
_heapset Заполняет свободные блоки кучи константами
    UNIX Win16    #include<mallok.h>
    OS/2 Win32    int _heapset (unsigned int fillvalue);
    ANSI C
heapwalk Используется для перемещения по куче от узла к узлу
    DOS UNIX Win16
    OS/2 Win32    #include<alloc.h>
    ANSI C      int heapwalk(struct heapinfo *hi);
_heapwalk Смотри _rtl_heapwalk
highvideo Устанавливает режим вывода символов высокой яркости
    DOS        #include<conio.h>
    OS/2 Win32    void highvideo(void);
hypot,hypotl Вычисляет гипотенузу прямоугольного треугольника
    hypot
             #include<math.h>
    DOS UNIX Win16 double hypot(double x,double y);
    OS/2 Win32
               ---***----
    hupotl      #include<math.h>
             long double hypotl(long double x,
    DOS Win16             long double y);
    OS/2 Win32
initEasyWin Инициализирует "удобный" Windous используется только в 16-pазpядном
    Win16       Windous
             #include<io.h>
             void _intEasyWin (void);
inp Читает байт из аппаратного порта
    DOS Win16    #include<conio.h>
             int inp(unsigned portid);
inport Считывает слово из аппаратного порта
    DOS Win16    #include<dos.h>
             int inport(int portid);
inportb Считывает байт из аппаратного порта
    DOS Win16    #include<dos.h>
    OS/2       unsigned char inportb(int portid);
inpw Считывает слово из аппаратного порта
    DOS Win16    #include<conio.h>
    OS/2       unsigned inpw(unsigned portid);
insline Вставляет в текстовое окно пустую строку
    DOS        #include <conio.h>
    OS/2 Win32    void insline(void);
int86 Общее программное прерывание процессора 8086
    DOS Win16    #include<dos.h>
    OS/2       int int86(int intno,union REGS *inregs,
                        union REGS *outregs);
int86x Общий интерфейс с программными прерываниями процессора 8086
    DOS        #include<dos.h>
    Win32       int int86x(int intno, union REGS *inregs,
                        union REGS *outregs,
                       union SREGS *segregs);
intdos Интерфейс с прерываниями DOS
    DOS Win16    #include<dos.h>
             int intdos(union REGS *intregs,
                        union REGS *outregs);
intdosx Общий интерфейс с функциями прерывания DOS
    DOS Win16    #include<dos.h>
             int intdosx(union REGS *inregs,
                   union REGS *outregs,
                   struct SREGS *segregs);
intr Альтернативный интерфейс программных прерываний процессора 8086
    DOS Win16    #include<dos.h>
             int intr(int intno,struct REGPACK *preg);
ioctl Управляет устройствами ввода-вывода
    DOS UNIX Win16 #include<io.h>
             int ioctl(int handle, int func[, void
                         *argdx, int argcx]);
isalnum Макрос классификации символов
    DOS UNIX Win16 #include<ctype.h>
    OS/2 Win32    int isalnum(int c);
    ANSI C++ ANSI C
isalpha Макрос классификации символов
    DOS UNIX Win16 #include<ctype.h>
    OS/2 Win32    int isalpha(int c);
    ANSI C++ ANSI C
isascii Макрос классификации символов
    DOS UNIX Win16 #include<ctype.h>
    OS/2 Win32    int isascii(int c);
isatty Проверяет тип устройства
    DOS UNIX Win16 #include <io.h>
    OS/2 Win32    int isatty(int handle);
iscntrl Макро классификации символов
    DOS UNIX Win16 #include<ctype.h>
    OS/2 Win32    int iscntrl(int c);
    ANSI C++ ANSI C
isdigit Макро классификации символов
    DOS UNIX Win16 #include<ctype.h>
    OS/2 Win32    int isdigit(int c);
    ANSI C++ ANSI C
isgraph Макро классификации символов
    DOS UNIX Win16 #include<ctype.h>
    OS/2 Win32    int isgraph(int c);
    ANSI C++ ANSI C
islower Макро классификации символов
    DOS UNIX Win16 #include<ctype.h>
    OS/2 Win32    int islower(int c);
    ANSI C++ ANSI C
isprint Макро классификации символов
    DOS UNIX Win16 #include<ctype.h>
    OS/2 Win32    int isprint(int c);
    ANSI C++ ANSI C
ispunct Макро классификации символов
    DOS UNIX Win16 #include<ctype.h>
    OS/2 Win32    int ispunct(int c);
    ANSI C++ ANSI C
isspace Макрос классификации символов
    DOS UNIX Win16 #include<ctype.h>
    OS/2 Win32    int isspace(int c);
    ANSI C++ ANSI C
isupper Макро классификации символов
    DOS UNIX Win16 #include<ctype.h>
    OS/2 Win32    int isupper(int c);
    ANSI C++ ANSI C
isxdigit Макро классификации символов
    DOS UNIX Win16 #include<ctype.h>
    OS/2 Win32    int isxdigit(int c);
    ANSI C++ ANSI C
itoa Преобразует целое в строку
    DOS Win16    #include <stdlib.h>
    OS/2 Win32    char *itoa(int value, char *string,int radix);
kbhit Контролирует нажатие клавиши
    DOS Win16    #include <conio.h>
    OS/2 Win32    int kbhit(void);
labs Возвращает абсолютное значение числа типа long
    DOS UNIX Win16 #include <math.h>
    OS/2 Win32    long int labs(long int x);
    ANSI C++ ANSI C
ldexp,ldexpl Вычисляет значение X x 2**exp
    ldexp       #include <math.h>
             double ldexp(double x,int exp);
    DOS UNIX Win16
    OS/2 Win32
    ANSI C++ ANSI C
               ---***---
    ldexpl      #include <math.h>
             long double ldexpl(long double x, int exp);
    DOS Win16
    OS/2 Win32
ldiv Делит два числа типа long и возвращает частное и остаток
    DOS  Win16
    OS/2 Win32    #include<stdlib.h>
    ANSI C++ ANSI C   ldiv_t ldiv(long int numer, long int denom);
lfind Выполняет линейный поиск
    DOS UNIX Win16 #include<stdlib.h>
    OS/2 Win32    void *lfind(const void *key, const void
    ANSI C++ ANSI C *base, size_t *num, size_t width, int
             (_USENTRY *fcmp)(const void *,
             const void *));
loсaleconv Возвращает указатель на текущую структуру local
    DOS Win16    #include<locale.h>
    OS/2 Win32    struct lconv *loсaleconv (void);
    ANSI C++ ANSI C
loсaltime Превращает дату и время в структуру
    DOS UNIX Win16 #include<time.h>
    OS/2 Win32    struct tm *localtime(const time_t *timer);
    ANSI C++ ANSI C
lock Блокирует файл коллективного доступа
    DOS Win16    #include<io.h>
    OS/2 Win32    int lock(int handle, long offset, long
             length);
locking Устанавливает или сбрасывает блокировку файла коллективного доступа
    DOS Win16    #include <io.h>
    OS/2 Win32    #include <sys\locking.h>
             int locking(int handle, int cmd, long length);
log,logl Вычисляет натуральный логарифм х
    logl       #include<math.h>
             double log(double x);
    DOS UNIX Win16
    OS/2 Win32
    ANSI C++ ANSI C
               ---***---
    logl       #include<math.h>
             long double log(long double x);
    DOS Win16
    OS/2 Win32
log10,log10l Вычисляет десятичный логарифм log10(x)
    log10       #include<math.h>
             double log10(double x);
    DOS UNIX Win16
    OS/2 Win32
    ANSI C++ ANSI C
               ---***---
    log10l      #include<math.h>
             long double log10l(long double x)
    DOS Win16
    OS/2 Win32
longjmp Выполняет нелокальный переход
    DOS UNIX Win16 #include<setjmp.h>
    OS/2 Win32    void longjmp(jmp_buf jmpb, int retval);
    ANSI C++ ANSI C
lowvideo Устанавливает режим вывода символов низкой яркости
    DOS        #include <conio.h>
    OS/2 Win32    void lowvideo(void);
_lrotl,_lrotr Выполняет циклический сдвиг влево беззнакового целого типа long
    DOS Win16    #include<stdlib.h>
    OS/2 Win32    unsigned long_lrotl(unsigned long val,
                            int count);
               ---***---
    DOS UNIX Win16 #include<stdlib.h>
    OS/2 Win32    unsigned long_lrotr(unsigned long val,
    ANSI C++ ANSI C                int count);
lsearch Выполняет линейный поиск
    DOS UNIX Win16 #include<stdlib.h>
    OS/2 Win32    void *lsearch(const void *key, void *base,
    ANSI C++ ANSI C         size_t *num, size_t width, int
             (_USENTRY*fcmp) (const void *, const
             void *));
lseek Перемещает указатель файла
    DOS UNIX Win16 #include<io.h>
    OS/2 C++ Win32 long lseek(int handle, long offset,
                           int fromwhere)
ltoa Преобразует значение типа long в строку
    DOS Win16    #include<stdlib.h>
    OS/2 Win32    char *ltoa(long value,char *string,int radix);
_makepath Строит маршрут доступа из его компонентов
    DOS Win16    #include<stdlib.h>
    OS/2 Win32    void _makepath(char *path, const char
             *drive, const char *dir, const char
                *name, const char *ext);
malloc Выделяет оперативную память
    DOS UNIX Win16 #include<stdlib.h>
    OS/2 Win32    void *malloc(size_t size);
    ANSI C++ ANSI C
matherr,_matherrl Функция обработки математических ошибок, модифицируемая пользователем
    DOS Win16
    OS/2 Win32    #include<math.h>
             int matherr(struct exeption *e);
             int_matherrl(struct_exceptionl *e);
max Возвращает большее из двух значений
    DOS Win16    #include<stdlib.h>
    OS/2 Win32    (type)max(a,b);
mblen Определяет длину многобайтового символа
    DOS Win16    #include <stdlib.h>
    OS/2 Win32    int mblen(const char *s, size_t n);
    ANSI C++ ANSI C
mbstowcs Преобразует многобайтовую строку в массив wchar_t
    DOS Win16
    OS/2 Win32    #include <stdlib.h>
    ANSI C++ ANSI C size_t mbstowcs(wchar_t *pwcs, const char *s,
                           size_t n);
mbtowc Преобразует многобайтовый символ в код wchar_t
    DOS Win16    #include <stdlib.h>
    OS/2 Win32    int mbtowc(wchar_t *pwc, const char *s,
    ANSI C++ ANSI C                   size_t n);
memccpy,_fmemccpy Копирует блок размером n байт
    memccpy      #include<mem.h>
             Короткий вызов функции:
    DOS UNIX Win16 void *memccpy(void *dest,const void *src,
    OS/2  Win32                 int c,size_t n);
              ---***---
    _memccpy     #inlcude<mem.h>
             Длинный вызов функции:
    DOS  Win16    void far * far _fmemccpy(void far * dest,
                const void far *src, int c, size_t n)
memchr,_fmemchr Просматривает n байт в поисках символа "c"
    memchr      #include<mem.h>
             void *memchr(const void *s,int c, size_t n);
    DOS UNIX Win16
    OS/2 Win32
    ANSI C++ ANSI C
               ---***---
    _fmemchr     #include<mem.h>
             void far*far _fmemchr(const void far *s, int c,
    DOS Win16                       size_t n);
memcmp,_fmemcmp Сравнивает два блока размером n байт
    memcmp      #include<mem.h>
             int memcmp(const void *s1, const void *s2,
    DOS UNIX Win16                     size_t n);
    OS/2 Win32
    ANSI C++ ANSI C
               ---***---
    _fmemcmp     #include<mem.h>
             int far _fmemcmp(cons void far *sl,
    DOS Win16         const void far *s2, size_t n)
memcpy,fmemcpy Копирует блок размером n байт
    memcpy      #include<mem.h>
             void *memcpy(void *dest, const void *src,
    DOS UNIX Win16                size_t n);
    OS/2 Win32
    ANSI C++ ANSI C
               ---***---
    fmemcpy      #include<mem.h>
             void far *far_fmemcpy(void far*dest,
    DOS Win16          const void far *src, size_t n);
memicmp,_fmemicmp Сравнивает n байт двух массивов символов, игнорируя различия регистров
    DOS UNIX Win16
    OS/2 Win32    #include<mem.
             int memicmp(const void *s1, const void *s2,
                         size_t n)
               ---***---
    _fmemicmp     #include<mem.h>
             int far _fmemicmp(const void far *s1,
    DOS Win16          const void far *s2, size_t n)
    Win32
memmove,_fmemmove Копирует блок размером n байт
    DOS UNIX Win16  #include<mem.h>
    OS/2 Win32     void *memmove(void *dest,const void *src,
    ANSI C++ ANSI C                size_t n);
              ---***----
    DOS Win16     #include<mem.h>
             void far * far _fmemmove (void far dest,
                   const void far *src , saze_t n)
memset,_fmemset Устанавливает значения n байт блока памяти равными значению c
    memset      #include<mem.h>
             void *memset(void *s,int c, size_t n)
    DOS UNIX Win16
    OS/2 Win32
    ANSI C++ ANSI C
               ---***---
    _fmemset     #include<mem.h>
             void far * far_fmemset(void far *s, int c,
    DOS Win16                     size_t n)
min Возвращает меньшее из двух значений
    DOS Win16    #include<stdlib.h>
    OS/2 Win32    (type) min(a,b)
mkdir Создает каталог
    DOS UNIX Win16 #include <dir.h>
    OS/2 Win32    int mkdir(const char *path);
MK_FP Формирует указатель с дальней адресацией
    DOS Win16    #include<dos.h>
    Win32       void far *MK_FP(unsigned seg, unsigned ofs);
mktemp Создает уникальное имя файла
    DOS UNIX Win16 #include <dir.h>
    OS/2 Win32    char *mktemp(char *template);
mktime Преобразует время к календарному времени
    DOS Win16    #include <time.h>
    OS/2 Win32    time_t mktime (struct tm *t);
    ANSI C++ ANSI C
modf,modfl Разделяет число типа double или long double на целую и дробную части
    modf       #include<math.h>
             double modf(double x,double *ipart);
    DOS UNIX Win16
    OS/2 Win32
    ANSI C++ ANSI C
               ---***---
    modfl       #include<math.h>
             long double modfl(long double x,
    DOS UNIX Win16               long double *ipart);
    OS/2 Win32
    ANSI C++ ANSI C
movedata Копирует n байт
    DOS Win16    #include <mem.h>
             void movedata(unsigned srcseg, unsigned srcoff,
             unsigned dstseg, unsigned dstoff, size_t n);
movmem,fmovmem Перемещает блок размером length байт
    DOS Win16    #include <mem.h>
             void movmem(void *src, void *dest,unsigned
             length);
             void _fmovmem(const void far *src,
             void far *dest, unsigned length);
movetext Копирует текст на экране из одного окна в другое
    DOS        #include <cohio.h>
    OS/2 Win32    int movetext(int left,int top,
                     int right,int bottom,
                     int destleft,int desttop);
_msize Возвpащает pазмеp кучи блоков
    OS/2 Win32     #include<malloc.h>
             size_t _msize(void *block);
normvideo Устанавливает нормальную яркость для символов
    DOS  Win16    #inсlude <conio.h>
    OS/2  Win32   void normvideo(void);
offsetof Выдает байт принадлежности к группе
    DOS UNIX Win16 #include<stddef.h>
    OS/2 Win32    size_t offsetof(struct_type,struct_member);
    ANSI C++ ANSI C
_open Смотри _rtl_open.
open Открывает файл для чтения или записи
    DOS UNIX Win16 #include<fcntl.h,io.h>
    OS/2  Win32   int open(const char *path,int access
                [,unsigned mode]);
opendir Открывает поток каталога для чтения
    DOS UNIX Win16 #include <dirent.h>
    OS/2 Win32    DIR *opendir(char *dirname);
outp Выводит байт в аппаратный порт
    DOS Win16    #include <conio.h>
             int outp(unsigned portid, int value);
outport,outportb Выводит слово или байт в аппаратный порт
    DOS Win16    #include <dos.h>
             void outport(int portid,int value)
             void outportb(int portid, unsigned char value);
outpw Выводит слово в аппаратный порт
    DOS Win16    #include <conio.h>
             unsigned outpw(unsigned portid,unsigned
             value);

Назад | Содержание | Вперед

Оставить комментарий

Комментарий:
можно использовать BB-коды
Максимальная длина комментария - 4000 символов.
 
Реклама на сайте | Обмен ссылками | Ссылки | Экспорт (RSS) | Контакты
Добавить статью | Добавить исходник | Добавить хостинг-провайдера | Добавить сайт в каталог