Перед тем как представить полную
справочную библиотеку функций языка
программирования Borland С++, рассмотрим функцию main,
занимающую особое место в данном перечне.
Аргументы функции main (argc, argv и env) всегда
передаются функции main подпрограммой
инициализаци и Borland С++.
Для использования соглашения о связях
Паскаля можно использовать ключевое слово cdecl.
Например:
В этой части перечисляются файлы
заголовков, содержащие прототип функции или
описания констант, перечисляемых типов и т.д. (т.е.
то, что использует данная функция).
Подобная запись описывает синтаксис функции.
abort |
Экстренно завершает программу
DOS UNIX Win16 #include <stdlib.h>
OS/2 Win32 void abort(void);
ANSI C++ ANSI C
|
abs |
Вычисляет абсолютное значение целочисленного
аргумента
DOS UNIX Win16 #include <stdlib.h>
OS/2 Win32 int abs(int x)
ANSI C++ ANSI C
|
access |
Определяет доступность файла
DOS UNIX Win16 #include <io.h>
OS/2 Win32 int access(const char *filename,int amode);
|
acos, acosl |
Вычисляет арккосинус
acos #include <math.h>
double acos(double x);
DOS UNIX Win16
OS/2 Win32
ANSI C++ ANSI C
---***---
acosl #include <math.h>
long double acosl(long double x);
DOS Win16
OS/2 Win32
|
alloca |
Выделяет временную область стека
DOS UNIX Win16 #include<malloc.h>
OS/2 Win32 void *alloca(size_t size);
|
asctime |
Преобразует дату и время в формат ASCII
DOS UNIX Win16 #include <time.h>
OS/2 Win32 char *asctime(const struct tm *tblock);
ANSI C++ ANSI C
|
asin, asinl |
Вычисляет арксинус
asin #include <math.h>
double asin(double x);
DOS UNIX Win16
OS/2 Win32
ANSI C++ ANSI C
---***---
asinl #inclyde <math.h>
long double asinl(long double x);
DOS Win16
OS/2 C++ Win32
|
assert |
Проверяет условия и прерывает, при
необходимости, выполнение программы
DOS UNIX Win16
OS/2 Win32 #include <assert.h>
ANSI C++ ANSI C void assert(int test);
|
atan,atanl |
Вычисляет арктангенс
atan #include <math.h>
double atan(double x)
DOS UNIX Win16
OS/2 Win32
ANSI C++ ANSI C
---***---
atanl #include <math.h>
long double atanl(long double x);
DOS UNIX Win16
OS/2 Win32
ANSI C++ ANSI C
|
atan2, atan2l |
Вычисляет арктангенс y/x
atan2 #include <math.h>
double atan2(double y, double x);
DOS UNIX Win16
OS/2 Win32
ANSI C++ ANSI C
---***---
atan2l #include<math.h>
long double atan2l(long double y,
DOS UNIX Win16 long double x);
OS/2
|
atexit |
Регистрирует функцию выхода
DOS Win16 #include <stdlib.h>
OS/2 Win32 int atexit(_USERENTRY * func)(void));
ANSI C++ ANSI C
|
atof, _atold |
Преобразует строку в число с плавающей точкой
atof #include <math.h>
double atof(const char *s);
DOS UNIX Win16
OS/2 Win32
ANSI C++ ANSI C
_atold #include <math.h>
long double _atold(const char *s);
DOS Win16
OS/2 Win32
|
atoi |
Преобразует строку в число типа integer
DOS UNIX Win16 #include <stdlib.h>
OS/2 Win32 int atoi(const char *s);
ANSI C++ ANSI C
|
atol |
Преобразует строку в число типа long
DOS UNIX Win16 #include <stdlib.h>
OS/2 Win32 long atol(char *s);
ANSI C++ ANSI C
|
_atold |
смотpи atof |
bdos |
Обеспечивает доступ к системным вызовам DOS
DOS Win16 #include <dos.h>
int bdosptr(int dosfun,void *argument,
unsigned dosal);
|
bdosptr |
Обеспечивает доступ к системным вызовам DOS
DOS UNIX Win16 #include <dos.h>
OS/2 int bdosptr(int dosfun, void *argument,
unsigned dosal);
|
_beginthread |
Начинает обработку новой последовательности
#include <process.h>
OS/2 C++ Win32 unsigned long _begihthread (_USERENTRY
(*start_adress)(void *),unsigned stack_size,
void *arglist)
|
_beginthreadNT |
Начинает обработку новой последовательности
под WindowsNT
Win32 #include <process.h>
unsigned long _beginthreadNT (void(_USENTRY *
start_adress) (void *),unsigned stack_size,
void *arglist, void *security_attrib,
unsignet long create_fiagss, unsigned
long *thead_id);
|
biosequip |
Проверяет оборудование
DOS Win16 #include <bios.h>
int biosequip(void);
|
_bios_equiplist |
Проверяет оборудование
DOS Win16 #include <bios.h>
unsigned _bios_equiplist(void);
|
bioskey |
Интерфейс клавиатуры, напрямую использующий
операции BIOS
DOS Win16
#include <bios.h>
int bioskey(int cmd);
|
biosmemory |
Возвращает размер памяти
DOS Win16 #include <bios.h>
int biosmemory(void);
|
_bios_memsize |
Возвращает размер памяти
DOS Win16 #include <bios.h>
unsigned _bios_memsize(void);
|
biostime |
Читает или устанавливает таймер BIOS
DOS Win16 #include <bios.h>
long biostime(int cmd, long newtime);
|
_bios_timeofday |
Читает или устанавливает таймер BIOS
DOS Win16 #include <bios.h>
unsigned _bios_timeofday(int cmd,long *timep);
|
bsearch |
Осуществляет двоичный поиск в массиве
DOS UNIX Win16 #include <stdlib.h>
OS/2 Win32 void *bsearch(const void *key,const void *base,
ANSI C++ ANSI C size_t nelem, size_t width,
int (_USERENTRY *fсmp)(const void *,
const void *));
|
cabs, cabsl |
Вычисляет абсолютные значения комплексного
числа
cabs #include <math.h>
DOS UNIX Win16 double cabs(struct complex z); D
OS/2 Win32
---***---
cabcl #include <math.h>
DOS Win16 long double cabsl(struct _complexl z);
OS/2 Win32
|
calloc |
Выделяет оперативную память
DOS UNIX Win16 #include <stdlib.h>
Win32 ANCI C void *calloc(size_t nitems, size_t size);
ANCI C++ OS/2
|
ceil, ceill |
Округляет значение аргумента в большую
сторону
ceil #include <math.h>
double ceil(double x);
DOS UNIX Win16
OS/2 Win32
ANSI C++ ANSI C
---***---
ceill #include <math.h>
long double ceill(long double x);
DOS Win16
Win32 OS/2
|
_c_exit |
Освобождает системные ресурсы (как _exit), но не
завершает программу.
DOS Win16
OS/2 Win32 #include <process.h>
void _c_exit(void);
|
_cexit |
Освобождает системные pесуpсы но не завеpшает
пpогpамму.
DOS Win16 #include <process.h>
OS/2 Win32 void _cexit(void)
|
cgets |
Считывает строку с консоли
DOS #include <conio.h>
OS/2 Win32 char *cgets(char *str);
|
_chain_intr |
Обеспечивает связь с новым обработчиком
прерываний
DOS Win16 #include <dos.h>
void _chain_intr(void(interrupt
far *newhandler)());
|
chdir |
Изменяет текущий каталог
DOS UNIX Win16 #include <dir.h>
OS/2 Win32 int chdir (const char *path);
|
_chdrive |
Устанавливает текущий диск
DOS Win16 #include <direct.h>
OS/2 Win32 int _chdrive(int drive);
|
_chmod |
смотpи _rtl_chmod
Изменяет атрибуты файла DOS |
chmod |
Изменяет режим доступа к файлу
DOS UNIX Win16 #include <sys\stat.h>
OS/2 Win32 int chmod(const char *path, int amode);
|
chsize |
Изменяет размер файла
DOS Win16 #include <io.h>
OS/2 Win32 int chsize(int handle, long size);
|
_clear87 |
Очищает слово состояния операций с плавающей
точкой
DOS Win16
OS/2 Win32 #include <float.h>
|
clearerr |
Сбрасывает индикацию ошибки
DOS UNIX Win16 #include <stdio.h>
OS/2 Win32 void clearerr(FILE *stream);
ANSI C++ ANSI C
|
clock |
Определяет процессорное время
DOS Win16 #include <time.h>
OS/2 Win32 clock_t clock(void);
ANSI C++ ANSI C
|
_close |
Смотpи _rtl_close
Закрывает файл |
close |
Закpывает файл
DOS Win16 UNIX #include <io.h>
OS/2 Win32 int close(int handle);
|
closedir |
Закрывает поток ввода-вывода каталога
DOS UNIX Win16 #include <dirent.h>
OS/2 C++ Win32 void closedir(DIR *dirp);
|
clreol |
Очищает конец строки в текстовом окне
DOS Win16 #include <conio.h>
OS/2 Win32 void clreol(void);
|
clrscr |
Очищает окно в текстовом режиме
DOS Win16 #include <conio.h>
OS/2 Win32 void clrscr(void);
complex conj(complex x);
|
_control87 |
Манипулирует словом управления операций с
плавающей точкой
DOS Win16 #include <float.h>
OS/2 Win32 unsigned int _control87(unsigned int newcw,
unsigned int mask);
|
cos, cosl |
Вычисляет косинус cos Вещественная версия
#include <math.h>
DOS UNIX Win16 double cos(double x);
OS/2 Win32
ANSI C++ ANSI C
---***---
cosl #include <math.h>
long double cosl(long double x);
DOS Win16
OS/2 Win32
|
cosh, coshl |
Вычисляет гиперболический косинус
cosh #include <math.h>
double cosh(double x);
DOS UNIX Win16
OS/2 Win32
ANSI C++ ANSI C
---***---
coshl #include <math.h>
long double coshl(long double x);
DOS Win16
OS/2 Win32
|
country |
Возвращает информацию, зависящую от страны
DOS Win16 #include <dos.h>
OS/2 struct country *country(int xcode, struct
COUNTRY *cp);
|
cprintf |
Осуществляет форматированный вывод на экран
DOS #include <conio.h>
OS/2 Win32 int cprintf(const char *format[,аргумент,...]);
|
cputs |
Выводит строку на экран
DOS #include <conio.h>
OS/2 Win32 int cputs(const char *str);
|
_creat |
Смотpи _rtl_crerat |
creat |
Создает новый файл или перезаписывает
существующий
DOS UNIX Win16 #include<io.h>
OS/2 Win32 int creat(const char *path, int amode);
|
creatnew |
Создает новый файл
DOS Win16 #include<is.h>
OS/2 Win32 int creatnew(const char *path, int mode);
|
creattemp |
Создает уникальный файл в каталоге,
определенном в маршруте
DOS Win16 #include<io.h>
OS/2 Win32 int creattemp(char *path, int attrib);
|
_crotl,_crotr |
Пеpевоpачивает и изменяет символы в пеpеменных
налево или напpаво.
DOS Win16 #include<stdlib.h>
OS/2 Win32 unsigned char _crotl(unsigned char val,
int count)
unsigned char _crotr(unsigned char val,
int count)
|
cscanf |
Просматривает и форматирует ввод с консоли
DOS Win16 #include <conio.h>
OS/2 Win32 int cscanf(char *format[,адрес,...]);
|
ctime |
Преобразует дату и время в строку
DOS UNIX Win16 #include <time.h>
OS/2 Win32 char *ctime(const time_t *time);
ANSI C++ ANSI C
|
ctrlbrk |
Устанавливает программу обработки Ctrl/Break
DOS Win16 #include <dos.h>
Win32 void ctrlbrk(int (*handler)(void));
|
cwait |
Заканчивает пpиостановку подпpогpамм
OS/2 Win32 #include<process.h>
int cwit(int *statloc, int pid, int
action);
|
delline |
Удаляет строку в текстовом окне
DOS Win16 #include <conio.h>
OS/2 Win32 void delline(void);
|
difftime |
Вычисляет разницу между двумя моментами
времени
DOS UNIX Win16
OS/2 Win32 #include <time.h>
ANSI C++ ANSI C double difftime(time_t time2, time_t time1);
|
disable, _disable, enable, _enable |
Запрещает и разрешает прерывания DOS Win16
Win32 #include<dos.h>
void disable(void);
void _disable(void);
void enable(void);
void _enable(void);
|
div |
Делит два целых числа, возвращая частное и
остаток
DOS Win16
OS/2 Win32 #include <stdlib.h>
ANSI C++ ANSI C div_t div(int numer, int denom);
|
_dos_close |
Закрывает файл
DOS Win16 #include <dos.h>
OS/2 C++ Win32 unsigned _dos_close(int handle);
|
_dos_commit |
Записывает файл на диск
DOS Win16 #include <dos.h>
unsigned _dos_commit(int handle);
|
_dos_creat |
Создает новый файл на месте уже существующего
DOS Win16 #include <dos.h,io.h>
OS/2 unsigned _dos_creat (const shar *path,int
attrib,int *handhelp);
|
_dos_creatnew |
Cоздает новый файл
DOS Win16 #include <dos.h>
OS/2 unsigned _dos_creatnew(const char *path,
int attrib,int *handlep);
|
dosexterr |
Получает расширенную информацию об ошибке DOS
DOS Win16 #include <dos.h>
int dosexterr(struct DOSERROR *eblkp);
|
_dos_findfirst |
Выполняет поиск в каталоге диска
DOS Win16 #include <dos.h>
OS/2 unsigned _dos_findfirst(const char
*pathname, int attrib,struct find_t
*ffblk);
|
_dos_findnext |
Продолжает поиск, начатый _dos_findfirst
DOS Win16 #include <dos.h>
OS/2 unsigned _dos_findnext(struct find_t
*ffblk);
|
_dos_getdate, |
Изменяет системную дату.
_dos_setdate,
getdate,setdate #include <dos.h>
void _dos_getdate(struct dosdate_t *datep);
DOS Win16 unsigned _dos _setdate(struct dosdate_t *datep);
OS/2 void getdate(struct date *datep);
void setdate(struct date *datep);
|
_dos_getdiskfree |
Определяет свободное пространство на диске
DOS Win16 #include <dos.h>
OS/2 unsigned _dos_getdiskfree(unsigned char
drive, struct diskfree_t *dtable);
|
_dos_getdrive, |
Заменяет текущий диск
_dos_setdrive
#include <dos.h>
DOS Win16 void _dos_getdrive(unsigned *drivep);
OS/2 void _dos_setdrive(unsigned drivep,
unsigned *ndrives);
|
_dos_getfileattr, |
Изменяет pежим доступа к файлу.
_dos_setfileattr
#include <dos.h>
DOS Win16 int _dos_getfileattr(const char *path,
OS/2 unsigned *attribp);
int _dos_setfileattr(const char path,
unsigned attrib);
|
_dos_getftime, |
Изменяет дату и время создания файла
_dos_setftime
#include <dos.h>
DOS Win16 unsigned _dos_getftime(int handle,
OS/2 unsigned *datep,unsigned *timep);
unsigned _dos_setftime(int handle,
unsigned date,unsigned time);
|
_dos_gettime, |
Изменяет системное время
_dos_settime
#include <dos.h>
DOS Win16 void _dos_gettime(struct dostime_t *timep);
OS/2 unsigned _dos_settime(struct dostime_t *timep);
|
_dos_getvect |
Получает вектор прерывания
DOS Win16 #include <dos.h>
OS/2 void interrupt(*_dos_getvect(unsigned
interruptno)) ();
|
_dos_open |
Открывает и подготавливает заданный файл для
чтения или записи
DOS Win16 #include <fcntl.h>
#include <share.h>
#include <dos.h>
unsigned _dos_open(const char *filename,
unsigned oflags,int *handlep);
|
_dos_read |
Считывает данные из файла
DOS Win16 #include <dos.h,io.h>
OS/2 unsigned _dos_read(int handle,void
far *buf, unsigned *nread);
|
_dos_setdate |
Смотpи _dos_getdate |
_dos_setdrive |
Смотpи _dos_getdrive |
_dos_setfileattr |
Смотpи _dos_getfileattr |
_dos_setftime |
Смотpи _dos_setftime |
_dos_gettime |
Смотpи _dos_gettime |
_dos_setvect |
Устанавливает значение вектоpа прерывания
DOS UNIX Win16 #include <dos.h>
void _dos_setvect(unsigned interruptno,
void iterrupt (*isr) ());
|
dostounix |
Преобразует дату и время в формат UNIX
DOS Win16 #include <dos.h>
long dostounix(struct date *d, struct time *t);
|
_dos_write |
Записывает в файл
DOS Win16 #include <dos.h>
OS/2 unsigned _dos_write (int handle, const
void_ _far *buf,unsigned len unsigned
*nwritten);
|
dup |
Дублирует описатель файла
DOS UNIX Win16 #include <io.h>
OS/2 Win32 int dup(int handle);
|
dup2 |
Дублирует описатель файла (oldhandle) в новый (newhandle)
DOS UNIX Win16
OS/2 Win32 #include <io.h>
int dup2(int oldhandle,int newhandle);
|
ecvt |
Преобразует число с плавающей точкой в строку
DOS UNIX Win16 #include <stdlib.h>
OS/2 Win32 char *ecvt(double value, int ndig, int
*dec, int *sign);
|
__emit__ |
Вставляет литерные значения прямо в объектный
код
DOS UNIX Win16
OS/2 Win32 #include <dos.h>
void __emit__(аргумент,...);
|
enable,_enable |
Смотpи disable |
_endtfread |
Заканчивает обpаботку подпpогpаммы
#include <process.h>
OS/2 Win32 void _endthread (void);
|
eof |
Контролирует достижение конца файла
DOS Win16 #include <io.h>
OS/2 Win32 int eof(int handle);
|
exec... |
Загружает и выполняет другие программы
DOS #include <process.h>
OS/2 Win32 int execl(char *path, char *arg0,*arg1,...,
*argn, NULL );
int execle(char *path, char
*arg0,*arg1,..., *argn, NULL,
char **env);
int execlp(char *path, char *arg0,*arg1,...,
*argn, NULL );
int execlpe(char *path, char *arg0,*arg1,...,
*argn, NULL, char **env);
int execv(char *path, char *arg[]);
int execve(char *path, char *arg[],char **env);
int execvp(char *path, char *arg[]);
int execvpe(char *path,char *arg[],char **env);
|
_exit |
Завершает выполнение программы
DOS UNIX Win16 include <stdlib.h>
OS/2 Win32 void _exit(int status);
|
exit |
Завершает выполнение программы
DOS UNIX Win16 #include <stdlib.h>
OS/2 Win32 void exit(int status);
ANSI C++ ANSI C
|
exp, expl |
Вычисляет экспоненту (е в степени х)
exp #include<math.h>
double exp(double x);
DOS UNIX Win16
OS/2 Win32
ANSI C++ ANSI C
---***---
expl #include<math.h>
long double expl(long double x);
DOS Win16
OS/2 Win32
|
_expand |
Пpоизводит сжатие нескольких блоков
#inclue <malloc.h>
OS/2 Win32 void *_expand(void *block, size_t size);
|
fabs, fabsl |
Определяет абсолютное значение числа с
плавающей точкой
fabs #include<math.h>
double fabs(double x);
DOS UNIX Win16
OS/2 Win32
ANSI C++ ANSI C
----***---
fabsl #include<math.h>
long double fabls(long double x);
DOS Win16
OS/2 Win32
|
farcalloc |
Выделяет память из кучи c дальней адpесацией
DOS Win16 #include <alloc.h>
OS/2 void far *farcalloc(unsigned long nunits,
unsigned long unitsz);
|
farfree |
Освобождает блок из кучи с дальней адpесацией
DOS Win16 #include <alloc.h>
void farfree(void far *block);
|
farmalloc |
Выделяет память в куче с дальней адресацией
DOS Win16 #include <alloc.h>
void far *farmalloc(unsigned long
nbytes);
|
farrealloc |
Регулирует размер блока в куче с дальней
адресацией
DOS Win16
OS/2 #include <alloc.h>
void far *farrealloc(void far *oldblock,
unsigned long nbytes);
|
fclose |
Закрывает поток
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 int fclose(FILE *stream);
ANSI C++ ANSI C
|
fcloseall |
Закрывает открытые потоки
DOS UNIX Win16 #include [<stdio.h>
OS/2 Win32 int fcloseall(void);
|
fcvt |
Преобразует число с плавающей точкой в строку
DOS UNIX Win16 #include<stdlib.h>
OS/2 Win32 char *fcvt(double value,int ndig,int *dec,
int *sign);
|
fdopen |
Связывает поток с описателем файла
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 FILE *fdopen(int handle, char *type);
|
feof |
Обнаруживает конец файла в потоке
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 int feof(FILE *stream);
ANSI C++ ANSI C
|
ferror |
Обнаруживает ошибки в потоке
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 int ferror(FILE *stream);
ANSI C++ ANSI C
|
fflush |
Очищает поток
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 int fflush(FILE *stream);
ANSI C++ ANSI C
|
fgetc |
Получает символ из потока
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 int fgetc(FILE *stream);
ANSI C++ ANSI C
|
fgetchar |
Получает символ из потока stdin
DOS UNIX Win16 #include <stdio.h>
OS/2 Win32 int fgetchar(void);
ANSI C++ ANSI C
|
fgetpos |
Получает текущий указатель файла
DOS Win16 #include<stdio.h>
OS/2 Win32 int fgetpos(FILE *stream, fpos_t *pos);
ANSI C++ ANSI C
|
fgets |
Получает строку из потока
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 char *fgets(char *s, int n, FILE *stream);
ANSI C++ ANSI C
|
filelength |
Получает размер файла в байтах
DOS Win16 #include<io.h>
OS/2 C++ Win32 long filelength(int handle);
|
fileno |
Получает описатель файла
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 int fileno(FILE *stream);
|
findfirst |
Выполняет поиск в каталоге диска
DOS Win16 #include<dir.h>
OS/2 Win32 int findfirst(const char *pathname,
struct ffblk *ffblk, int attrib);
|
findnext |
Продолжает поиск функции findfirst
DOS Win16 #include<dir.h>
OS/2 Win32 int findnext(struct ffblk *ffblk);
|
floor,floorl |
Округляет в меньшую сторону
floor #include <math.h>
double floor(double x);
DOS UNIX Win16
OS/2 Win32
ANSI C++ ANSI C
---***---
floorl #include <math.h>
long double floorl(long double x);
DOS Win16
OS/2 Win32
|
flushall |
Очищает все потоки
DOS UNIX Win16 #include <stdio.h>
OS/2 C++ Win32 int flushall(void);
|
_fmemccpy |
Смотpи memccpy. |
_fmemchr |
Смотpи memchr. |
_fmemcmp |
Смотpи memcmp. |
_fmemcpy |
Смотpи memcpy. |
_fmemicmp |
Смотpи memicmp. |
_fmemset |
Смотpи memset. |
fmod, fmodl |
Вычисляет x по модулю y, остаток от х/y
fmod #include <math.h>
double fmod(double x, double y);
DOS UNIX Win16
OS/2 Win32
ANSI C++ ANSI C
---***---
fmodl #include <math.h>
long double fmodl(long double x,long
DOS Win16 double y);
OS/2 Win32
|
fnmerge |
Создает из составных частей полное имя файла
DOS Win16 #include<dir.h>
OS/2 Win32 void fnmerge(char *path, const char
*drive, const char *dir, const char
*name, const char *ext);
|
fnsplit |
Расщепляет полное имя файла на компоненты
DOS Win16 #include<dir.h>
OS/2 Win32 void fnsplit(char *path, char *drive,
char *dir, char *name,
char *ext);
|
fopen |
Открывает поток
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 FILE *fopen(const char *filename,
ANSI C++ ANSI C const char *mode);
|
FP_OFF,FP_SEG |
Получает смещение или сегмент с дальней
адресацией
DOS Win16 #include<dos.h>
Win32 unsigned FP_OFF(void far *p);
unsigned FP_SEG(void far *p);
|
_fpreset |
Инициализирует заново математический пакет
для работы с плавающей точкой
DOS Win16 #include <float.h>
OS/2 Win32 void _fpreset(void);
|
fprintf |
Записывает форматированный вывод в поток
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 int fprintf(FILE *stream,
ANSI C++ ANSI C const char *format[,аргумент,...]);
|
fputc |
Выводит символ в поток
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 int fputc(int c, FILE *stream);
|
fputchar |
Выводит символ в поток stdout
DOS UNIX #include<stdio.h>
OS/2 Win32 int fputchar(int c)
ANSI C++
|
fputs |
Выводит строку в поток
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 int fputs(const char *s, FILE *stream);
ANSI C++ ANSI C
|
fread |
Cчитывает данные из потока
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 size_t fread(void *ptr, size_t size,
ANSI C++ ANSI C size_t n, FILE *stream);
|
free |
Освобождает выделенный блок памяти
DOS UNIX Win16 #include<stdlib.h>
OS/2 Win32 void free(void *block);
ANSI C++ ANSI C
|
freopen |
Соединяет новый файл с открытым потоком
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 FILE *freopen(const char *filename,
ANSI C++ ANSI C const char *mode, FILE *stream);
|
frexp,frexpl |
Расщепляет число типа double на мантиссу и
показатель
frexp #include<math.h>
double frexp(double x,int *exponent);
DOS UNIX Win16
OS/2 Win32
ANSI C++ ANSI C
---***---
frexpl #include<math.h>
long double frexpl(long double x,
DOS UNIX Win16 int *exponent);
OS/2 Win32
|
fscanf |
Просматривает и форматирует ввод из потока
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 int fscanf(FILE *stream,
ANSI C++ ANSI C const char *format[,address,...]);
|
fseek |
Перемещает указатель файла по потоку
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 int fseek(FILE *stream,long int offset,
ANSI C++ ANSI C int whence);
|
fsetpos |
Позиционирует указатель файла потока
DOS Win16 #include<stdio.h>
OS/2 Win32 int fsetpos(FILE *stream, const fpos_t *pos);
ANSI C++ ANSI C
|
_fsopen |
Открывает поток с коллективным использованием
файла
DOS Win16 #include<stdio.h>
OS/2 Win32 #include<share.h>
FILE *_fsopen(const char *filename,
const char *mode, int shflg);
|
fstat,stat |
Получает информацию об открытом файле
DOS UNIX Win16 #include<sys\stat.h>
OS/2 Win32 int fstat(int handle, struct stat *statbuff);
int stat(char *path,ctruct stat *statbuf);
|
_fstr* |
Работа с потоками
DOS Win16 См. описание функций strcat, strchr,
OS/2 strcspn, strdup, stricmp, strlen,
strlwr, strncat, strncmp, strncpy,
strnicmp, strnset, strpbrk, strrchr,
strrev, strset, strspn, strstr, strtok и
strupr для версий с дальней адресацией.
|
ftell |
Возвращает текущий указатель файла
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 long int ftell(FILE *stream)
ANSI C++ ANSI C
|
ftime |
Сохраняет текущее время в структуре timeb
DOS UNIX Win16 #include<sys\timeb.h>
OS/2 Win32 void ftime (struct timeb *buf);
|
_fullpath |
Преобразует полное имя файла из
относительного в абсолютное
DOS Win16
OS/2 C++ Win32 #include<stdlib.h>
char* _fullpath(char *buffer, const char *path,
int buflen);
|
fwrite |
Записывает в поток
DOS UNIX Win16 #include<stdio.h>
OS/2 Win32 size_t fwrite(const void *ptr, size_t size,
ANSI C++ ANSI C size_t n, FILE *stream);
|