mirror of
https://github.com/ThomasDickey/mawk-snapshots.git
synced 2026-01-27 03:14:29 +00:00
64 lines
1.4 KiB
C
64 lines
1.4 KiB
C
/********************************************
|
|
bi_funct.h
|
|
copyright 2009-2023,2024 Thomas E. Dickey
|
|
copyright 1991, Michael D. Brennan
|
|
|
|
This is a source file for mawk, an implementation of
|
|
the AWK programming language.
|
|
|
|
Mawk is distributed without warranty under the terms of
|
|
the GNU General Public License, version 2, 1991.
|
|
********************************************/
|
|
|
|
/*
|
|
* $MawkId: bi_funct.h,v 1.8 2024/08/25 17:17:31 tom Exp $
|
|
*/
|
|
|
|
#ifndef BI_FUNCT_H
|
|
#define BI_FUNCT_H 1
|
|
|
|
#include <symtype.h>
|
|
|
|
extern const BI_REC bi_funct[];
|
|
|
|
void bi_init(void);
|
|
|
|
/* builtin string functions */
|
|
CELL *bi_print(CELL *);
|
|
CELL *bi_printf(CELL *);
|
|
CELL *bi_length(CELL *);
|
|
CELL *bi_alength(CELL *); /* length/size of an array */
|
|
CELL *bi_index(CELL *);
|
|
CELL *bi_substr(CELL *);
|
|
CELL *bi_sprintf(CELL *);
|
|
CELL *bi_split(CELL *);
|
|
CELL *bi_match(CELL *);
|
|
CELL *bi_getline(CELL *);
|
|
CELL *bi_sub(CELL *);
|
|
CELL *bi_gsub(CELL *);
|
|
CELL *bi_toupper(CELL *);
|
|
CELL *bi_tolower(CELL *);
|
|
|
|
/* builtin arith functions */
|
|
CELL *bi_sin(CELL *);
|
|
CELL *bi_cos(CELL *);
|
|
CELL *bi_atan2(CELL *);
|
|
CELL *bi_log(CELL *);
|
|
CELL *bi_exp(CELL *);
|
|
CELL *bi_int(CELL *);
|
|
CELL *bi_sqrt(CELL *);
|
|
CELL *bi_srand(CELL *);
|
|
CELL *bi_rand(CELL *);
|
|
|
|
/* time functions */
|
|
CELL *bi_mktime(CELL *);
|
|
CELL *bi_strftime(CELL *);
|
|
CELL *bi_systime(CELL *);
|
|
|
|
/* other builtins */
|
|
CELL *bi_close(CELL *);
|
|
CELL *bi_system(CELL *);
|
|
CELL *bi_fflush(CELL *);
|
|
|
|
#endif /* BI_FUNCT_H */
|