# RISC-V Runtime library

[RISC-V Documentation](https://asm-editor.specy.app/documentation/risc-v.md)

Web page: https://asm-editor.specy.app/documentation/risc-v/runtime-library

The C standard library compiled programs use, which hand-written assembly can call too.

185 entries, each with its own page of markdown:

- [Compiled programs](https://asm-editor.specy.app/documentation/risc-v/runtime-library/compiled-programs.md): Compiling a C or C++ file links the Runtime library automatically.
- [From hand-written assembly](https://asm-editor.specy.app/documentation/risc-v/runtime-library/from-assembly.md): Hand-written assembly can call the library too.
- [Files and folders](https://asm-editor.specy.app/documentation/risc-v/runtime-library/folders.md): Alongside the file streams in , the library provides functions for folders and for files named by a path.
- [Standard input](https://asm-editor.specy.app/documentation/risc-v/runtime-library/standard-input.md): Reading standard input (scanf, fgets, getchar) waits for a line typed in the console and keeps what the program did not read for the next call, as a terminal…
- [Reading the library](https://asm-editor.specy.app/documentation/risc-v/runtime-library/reading-the-library.md): The Explorer is the file list for the current Build.
- [Stepping](https://asm-editor.specy.app/documentation/risc-v/runtime-library/stepping.md): A runtime error stops execution.
- [`_Exit`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/_Exit.md) `<stdlib.h>`: Ends the program immediately with the given status, without running atexit handlers.
- [`__assert_fail`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/__assert_fail.md) `<assert.h>`: Prints "Assertion failed: expr (file: func: line)" to stderr and aborts; called by the assert macro.
- [`abort`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/abort.md) `<stdlib.h>`: Ends the program abnormally with status 134, without running atexit handlers.
- [`abs`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/abs.md) `<stdlib.h>`: Returns the absolute value of an int.
- [`acos`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/acos.md) `<math.h>`: Returns the arc cosine of x, in radians between 0 and pi.
- [`aligned_alloc`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/aligned_alloc.md) `<stdlib.h>`: Allocates size bytes aligned to alignment (a power of two) and returns a pointer, or NULL.
- [`asctime`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/asctime.md) `<time.h>`: Formats *tm as "Www Mmm dd hh:mm:ss yyyy\n" in a static buffer and returns it.
- [`asin`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/asin.md) `<math.h>`: Returns the arc sine of x, in radians between -pi/2 and pi/2.
- [`atan`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/atan.md) `<math.h>`: Returns the arc tangent of x, in radians between -pi/2 and pi/2.
- [`atan2`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/atan2.md) `<math.h>`: Returns the arc tangent of y/x using the signs of both to pick the quadrant, in radians between -pi and pi.
- [`atexit`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/atexit.md) `<stdlib.h>`: Registers a function for exit to call, in reverse order of registration; returns 0 on success.
- [`atof`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/atof.md) `<stdlib.h>`: Converts the start of a string to double (no error detection).
- [`atoi`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/atoi.md) `<stdlib.h>`: Converts the start of a string to int (decimal, no error detection).
- [`atol`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/atol.md) `<stdlib.h>`: Converts the start of a string to long (decimal, no error detection).
- [`atoll`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/atoll.md) `<stdlib.h>`: Converts the start of a string to long long (decimal, no error detection).
- [`bsearch`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/bsearch.md) `<stdlib.h>`: Searches a sorted array for key with the comparison function cmp; returns the matching element or NULL.
- [`calloc`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/calloc.md) `<stdlib.h>`: Allocates zeroed memory for count objects of size bytes each, or returns NULL if the total overflows or memory runs out.
- [`cbrt`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/cbrt.md) `<math.h>`: Returns the cube root of x.
- [`ceil`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/ceil.md) `<math.h>`: Returns the smallest integer value not less than x.
- [`ceilf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/ceilf.md) `<math.h>`: Returns the smallest integer value not less than x (float).
- [`clearerr`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/clearerr.md) `<stdio.h>`: Clears the end-of-file and error indicators of stream.
- [`clock`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/clock.md) `<time.h>`: Returns processor time in CLOCKS_PER_SEC units; simulator instructions run at nominal 100 MHz.
- [`closedir`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/closedir.md) `<dirent.h>`: Closes a folder opendir opened and frees it; returns 0.
- [`copysign`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/copysign.md) `<math.h>`: Returns the magnitude of x with the sign of y.
- [`cos`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/cos.md) `<math.h>`: Returns the cosine of x (radians).
- [`cosf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/cosf.md) `<math.h>`: Returns the cosine of x in radians (float).
- [`cosh`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/cosh.md) `<math.h>`: Returns the hyperbolic cosine of x.
- [`ctime`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/ctime.md) `<time.h>`: Formats the time *t like asctime(localtime(t)).
- [`difftime`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/difftime.md) `<time.h>`: Returns end - start in seconds.
- [`div`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/div.md) `<stdlib.h>`: Divides two ints, returning the quotient and remainder together.
- [`exit`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/exit.md) `<stdlib.h>`: Runs atexit handlers and static destructors, flushes output streams, then ends the program with the given status.
- [`exp`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/exp.md) `<math.h>`: Returns e raised to the power x.
- [`expf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/expf.md) `<math.h>`: Returns e raised to the power x (float).
- [`expm1`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/expm1.md) `<math.h>`: Returns e raised to the power x, minus 1, accurately even for x near 0.
- [`fabs`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fabs.md) `<math.h>`: Returns the absolute value of x.
- [`fabsf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fabsf.md) `<math.h>`: Returns the absolute value of x (float).
- [`fclose`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fclose.md) `<stdio.h>`: Closes a stream opened by fopen and returns 0, or EOF on error.
- [`feof`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/feof.md) `<stdio.h>`: Returns nonzero if the end-of-file indicator of stream is set.
- [`ferror`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/ferror.md) `<stdio.h>`: Returns nonzero if the error indicator of stream is set.
- [`fflush`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fflush.md) `<stdio.h>`: Flushes pending output; NULL flushes all output streams.
- [`fgetc`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fgetc.md) `<stdio.h>`: Reads the next character from stream as an unsigned char converted to int, or returns EOF.
- [`fgetpos`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fgetpos.md) `<stdio.h>`: Stores the current position of stream in *pos; returns 0, or -1 on error.
- [`fgets`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fgets.md) `<stdio.h>`: Reads a line of at most n-1 characters, keeping the newline, into str; returns str, or NULL if nothing was read.
- [`floor`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/floor.md) `<math.h>`: Returns the largest integer value not greater than x.
- [`floorf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/floorf.md) `<math.h>`: Returns the largest integer value not greater than x (float).
- [`fmax`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fmax.md) `<math.h>`: Returns the larger of x and y, ignoring a NaN argument.
- [`fmin`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fmin.md) `<math.h>`: Returns the smaller of x and y, ignoring a NaN argument.
- [`fmod`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fmod.md) `<math.h>`: Returns the remainder of x / y with the sign of x.
- [`fmodf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fmodf.md) `<math.h>`: Returns the remainder of x / y with the sign of x (float).
- [`fopen`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fopen.md) `<stdio.h>`: Opens the file at path with mode "r", "w" or "a" (optionally with "+", "b" or "x") and returns its stream, or NULL with errno set.
- [`fprintf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fprintf.md) `<stdio.h>`: Writes formatted output to stream and returns the number of bytes written, or a negative value on error.
- [`fputc`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fputc.md) `<stdio.h>`: Writes the character c to stream and returns it, or EOF on error.
- [`fputs`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fputs.md) `<stdio.h>`: Writes the string str to stream without a newline; returns a non-negative value, or EOF on error.
- [`fread`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fread.md) `<stdio.h>`: Reads up to count items of size bytes each into ptr and returns the number of complete items read.
- [`free`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/free.md) `<stdlib.h>`: Releases a block returned by malloc, calloc, realloc or aligned_alloc; free(NULL) does nothing.
- [`freopen`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/freopen.md) `<stdio.h>`: Closes stream and opens path in its place, as fopen would; commonly used to read stdin from a File.
- [`frexp`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/frexp.md) `<math.h>`: Splits x into a fraction in [0.5, 1) returned and a power of two stored in *exp.
- [`fscanf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fscanf.md) `<stdio.h>`: Reads formatted input from stream and returns the number of items assigned, or EOF if input ended before the first conversion.
- [`fseek`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fseek.md) `<stdio.h>`: Moves the position of stream to offset from SEEK_SET, SEEK_CUR or SEEK_END; returns 0, or -1 on error.
- [`fsetpos`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fsetpos.md) `<stdio.h>`: Moves stream to a position saved by fgetpos; returns 0, or -1 on error.
- [`ftell`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/ftell.md) `<stdio.h>`: Returns the current position of stream, or -1 on error.
- [`fwrite`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/fwrite.md) `<stdio.h>`: Writes count items of size bytes each from ptr and returns the number of complete items written.
- [`getc`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/getc.md) `<stdio.h>`: Reads the next character from stream, exactly like fgetc.
- [`getchar`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/getchar.md) `<stdio.h>`: Reads the next character from stdin, or returns EOF at the end of input.
- [`getenv`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/getenv.md) `<stdlib.h>`: Always returns NULL; the editor Runtime library does not expose environment variables through this function.
- [`gmtime`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/gmtime.md) `<time.h>`: Breaks *t into UTC calendar fields stored in a static struct tm and returns it, or NULL on overflow.
- [`hypot`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/hypot.md) `<math.h>`: Returns sqrt(x*x + y*y) without undue overflow or underflow.
- [`imaxabs`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/imaxabs.md) `<inttypes.h>`: Returns the absolute value of an intmax_t.
- [`imaxdiv`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/imaxdiv.md) `<inttypes.h>`: Divides two intmax_t values, returning the quotient and remainder together.
- [`isalnum`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/isalnum.md) `<ctype.h>`: Returns nonzero if c is a letter or a digit.
- [`isalpha`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/isalpha.md) `<ctype.h>`: Returns nonzero if c is a letter.
- [`isblank`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/isblank.md) `<ctype.h>`: Returns nonzero if c is a space or a tab.
- [`iscntrl`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/iscntrl.md) `<ctype.h>`: Returns nonzero if c is a control character.
- [`isdigit`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/isdigit.md) `<ctype.h>`: Returns nonzero if c is a decimal digit.
- [`isgraph`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/isgraph.md) `<ctype.h>`: Returns nonzero if c is printable and not a space.
- [`islower`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/islower.md) `<ctype.h>`: Returns nonzero if c is a lowercase letter.
- [`isprint`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/isprint.md) `<ctype.h>`: Returns nonzero if c is printable, including the space.
- [`ispunct`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/ispunct.md) `<ctype.h>`: Returns nonzero if c is printable but neither a space nor alphanumeric.
- [`isspace`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/isspace.md) `<ctype.h>`: Returns nonzero if c is white space: space, \t, \n, \v, \f or \r.
- [`isupper`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/isupper.md) `<ctype.h>`: Returns nonzero if c is an uppercase letter.
- [`isxdigit`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/isxdigit.md) `<ctype.h>`: Returns nonzero if c is a hexadecimal digit.
- [`labs`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/labs.md) `<stdlib.h>`: Returns the absolute value of a long.
- [`ldexp`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/ldexp.md) `<math.h>`: Returns x multiplied by 2 raised to exp.
- [`ldiv`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/ldiv.md) `<stdlib.h>`: Divides two longs, returning the quotient and remainder together.
- [`llabs`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/llabs.md) `<stdlib.h>`: Returns the absolute value of a long long.
- [`lldiv`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/lldiv.md) `<stdlib.h>`: Divides two long longs, returning the quotient and remainder together.
- [`localtime`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/localtime.md) `<time.h>`: Same as gmtime: programs run in UTC.
- [`log`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/log.md) `<math.h>`: Returns the natural logarithm of x.
- [`log10`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/log10.md) `<math.h>`: Returns the base-10 logarithm of x.
- [`log2`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/log2.md) `<math.h>`: Returns the base-2 logarithm of x.
- [`logf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/logf.md) `<math.h>`: Returns the natural logarithm of x (float).
- [`malloc`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/malloc.md) `<stdlib.h>`: Allocates size bytes of uninitialized memory and returns a pointer to it, or NULL with errno set to ENOMEM.
- [`memchr`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/memchr.md) `<string.h>`: Returns a pointer to the first byte equal to c in the first n bytes of s, or NULL.
- [`memcmp`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/memcmp.md) `<string.h>`: Compares n bytes as unsigned chars; returns a negative, zero or positive value.
- [`memcpy`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/memcpy.md) `<string.h>`: Copies n bytes from src to dest, which must not overlap, and returns dest.
- [`memmove`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/memmove.md) `<string.h>`: Copies n bytes from src to dest, which may overlap, and returns dest.
- [`memset`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/memset.md) `<string.h>`: Fills n bytes at dest with the byte c and returns dest.
- [`mkdir`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/mkdir.md) `<sys/stat.h>`: Makes a folder at path, whose own folder must exist, ignoring mode; returns 0, or -1 with errno set (EEXIST when something is there already).
- [`mktime`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/mktime.md) `<time.h>`: Normalizes the fields of *tm, read as UTC, and returns the matching time_t, or -1 if it cannot be represented.
- [`modf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/modf.md) `<math.h>`: Splits x into an integral part stored in *ip and a fractional part returned, both with the sign of x.
- [`opendir`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/opendir.md) `<dirent.h>`: Opens the folder at path for readdir; returns a DIR, or NULL with errno set (ENOENT, or ENOTDIR for a file).
- [`perror`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/perror.md) `<stdio.h>`: Writes msg, a colon and the message for the current errno to stderr.
- [`pow`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/pow.md) `<math.h>`: Returns x raised to the power y.
- [`powf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/powf.md) `<math.h>`: Returns x raised to the power y (float).
- [`printf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/printf.md) `<stdio.h>`: Writes formatted output to stdout and returns the number of bytes written, or a negative value on error.
- [`putc`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/putc.md) `<stdio.h>`: Writes the character c to stream, exactly like fputc.
- [`putchar`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/putchar.md) `<stdio.h>`: Writes the character c to stdout and returns it, or EOF on error.
- [`puts`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/puts.md) `<stdio.h>`: Writes the string str and a newline to stdout; returns a non-negative value, or EOF on error.
- [`qsort`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/qsort.md) `<stdlib.h>`: Sorts count elements of size bytes at base in place using the comparison function cmp.
- [`rand`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/rand.md) `<stdlib.h>`: Returns a pseudo-random integer between 0 and RAND_MAX.
- [`readdir`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/readdir.md) `<dirent.h>`: The folder's next entry, "." and ".." first; NULL at the end, with errno unchanged, or NULL with errno set on a failure.
- [`realloc`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/realloc.md) `<stdlib.h>`: Resizes the block at ptr to size bytes, moving it if needed; returns the new pointer, or NULL leaving the block unchanged.
- [`remove`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/remove.md) `<stdio.h>`: Deletes the file at path, or the folder at path when it is empty; returns 0, or -1 with errno set.
- [`rename`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/rename.md) `<stdio.h>`: Renames or moves the file at from to the path to, whose folder must exist, replacing a file already at to; returns 0, or -1 with errno set: EISDIR when either…
- [`rewind`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/rewind.md) `<stdio.h>`: Moves stream back to its start and clears its error indicator.
- [`rmdir`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/rmdir.md) `<unistd.h>`: Deletes the folder at path when it is empty; returns 0, or -1 with errno set (ENOTEMPTY when it holds anything).
- [`round`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/round.md) `<math.h>`: Returns x rounded to the nearest integer value, halfway cases away from zero.
- [`roundf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/roundf.md) `<math.h>`: Returns x rounded to the nearest integer value, halfway cases away from zero (float).
- [`scalbn`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/scalbn.md) `<math.h>`: Returns x multiplied by 2 raised to n.
- [`scanf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/scanf.md) `<stdio.h>`: Reads formatted input from stdin and returns the number of items assigned, or EOF if input ended before the first conversion.
- [`setbuf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/setbuf.md) `<stdio.h>`: Requests full output buffering with BUFSIZ bytes, or unbuffered output when buf is NULL.
- [`setvbuf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/setvbuf.md) `<stdio.h>`: Sets output buffering (_IOFBF, _IOLBF or _IONBF).
- [`sin`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/sin.md) `<math.h>`: Returns the sine of x (radians).
- [`sincos`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/sincos.md) `<math.h>`: Stores the sine and cosine of x (radians) in *s and *c (GNU extension; GCC may combine sin and cos calls into it).
- [`sincosf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/sincosf.md) `<math.h>`: Stores the sine and cosine of x in radians in *s and *c (float, GNU extension).
- [`sinf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/sinf.md) `<math.h>`: Returns the sine of x in radians (float).
- [`sinh`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/sinh.md) `<math.h>`: Returns the hyperbolic sine of x.
- [`snprintf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/snprintf.md) `<stdio.h>`: Writes at most n-1 formatted characters into str plus a NUL and returns the length the full output would have had.
- [`sprintf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/sprintf.md) `<stdio.h>`: Writes formatted output into str with a terminating NUL and returns the number of characters written.
- [`sqrt`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/sqrt.md) `<math.h>`: Returns the square root of x, correctly rounded.
- [`sqrtf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/sqrtf.md) `<math.h>`: Returns the square root of x, correctly rounded (float).
- [`srand`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/srand.md) `<stdlib.h>`: Seeds the sequence returned by rand; the same seed repeats the same sequence.
- [`sscanf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/sscanf.md) `<stdio.h>`: Reads formatted input from the string str and returns the number of items assigned.
- [`stat`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/stat.md) `<sys/stat.h>`: Describes what is at path in *buf: its kind and permissions in st_mode, a file's size in st_size; returns 0, or -1 with errno set (ENOENT when nothing is…
- [`strcat`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strcat.md) `<string.h>`: Appends the string src to the end of dest and returns dest.
- [`strchr`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strchr.md) `<string.h>`: Returns a pointer to the first occurrence of the character c in s (c may be NUL), or NULL.
- [`strcmp`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strcmp.md) `<string.h>`: Compares two strings; returns a negative, zero or positive value.
- [`strcoll`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strcoll.md) `<string.h>`: Compares two strings in the "C" locale, exactly like strcmp.
- [`strcpy`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strcpy.md) `<string.h>`: Copies the string src, including its NUL, to dest and returns dest.
- [`strcspn`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strcspn.md) `<string.h>`: Returns the length of the initial part of s containing no character from reject.
- [`strdup`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strdup.md) `<string.h>`: Returns a malloc'ed copy of the string s, or NULL if memory runs out.
- [`strerror`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strerror.md) `<string.h>`: Returns a message describing the error number errnum.
- [`strlen`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strlen.md) `<string.h>`: Returns the length of the string s, not counting its terminating NUL.
- [`strncat`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strncat.md) `<string.h>`: Appends at most n characters of src, then a NUL, to dest and returns dest.
- [`strncmp`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strncmp.md) `<string.h>`: Compares at most n characters of two strings; returns a negative, zero or positive value.
- [`strncpy`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strncpy.md) `<string.h>`: Copies at most n characters of src to dest, padding with NULs; dest is not terminated if src is n or longer.
- [`strndup`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strndup.md) `<string.h>`: Returns a malloc'ed copy of at most n characters of s, always terminated, or NULL if memory runs out.
- [`strnlen`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strnlen.md) `<string.h>`: Returns the length of s, but at most n.
- [`strpbrk`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strpbrk.md) `<string.h>`: Returns a pointer to the first character of s that is in accept, or NULL.
- [`strrchr`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strrchr.md) `<string.h>`: Returns a pointer to the last occurrence of the character c in s, or NULL.
- [`strspn`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strspn.md) `<string.h>`: Returns the length of the initial part of s made only of characters in accept.
- [`strstr`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strstr.md) `<string.h>`: Returns a pointer to the first occurrence of the string needle in haystack, or NULL.
- [`strtod`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strtod.md) `<stdlib.h>`: Converts the start of a string to double, correctly rounded, storing the end in *end; sets errno to ERANGE on overflow or underflow.
- [`strtof`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strtof.md) `<stdlib.h>`: Converts the start of a string to float, correctly rounded, storing the end in *end; sets errno to ERANGE on overflow or underflow.
- [`strtoimax`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strtoimax.md) `<inttypes.h>`: Converts the start of a string to intmax_t in the given base (0 detects 0x and 0 prefixes), storing the end in *end.
- [`strtok`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strtok.md) `<string.h>`: Splits a string into tokens separated by characters in delim; pass the string first, then NULL to continue.
- [`strtol`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strtol.md) `<stdlib.h>`: Converts the start of a string to long in the given base (0 detects 0x and 0 prefixes), storing the end in *end; sets errno to ERANGE on overflow.
- [`strtoll`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strtoll.md) `<stdlib.h>`: Converts the start of a string to long long in the given base, storing the end in *end; sets errno to ERANGE on overflow.
- [`strtoul`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strtoul.md) `<stdlib.h>`: Converts the start of a string to unsigned long in the given base, storing the end in *end; sets errno to ERANGE on overflow.
- [`strtoull`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strtoull.md) `<stdlib.h>`: Converts the start of a string to unsigned long long in the given base, storing the end in *end; sets errno to ERANGE on overflow.
- [`strtoumax`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strtoumax.md) `<inttypes.h>`: Converts the start of a string to uintmax_t in the given base (0 detects 0x and 0 prefixes), storing the end in *end.
- [`strxfrm`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/strxfrm.md) `<string.h>`: Copies src into dest (at most n bytes) in the "C" locale and returns the length of src.
- [`tan`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/tan.md) `<math.h>`: Returns the tangent of x (radians).
- [`tanf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/tanf.md) `<math.h>`: Returns the tangent of x in radians (float).
- [`tanh`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/tanh.md) `<math.h>`: Returns the hyperbolic tangent of x.
- [`time`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/time.md) `<time.h>`: Returns the current time in seconds since 1970-01-01 UTC and also stores it in *t when t is not NULL.
- [`tolower`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/tolower.md) `<ctype.h>`: Returns the lowercase form of c if it is an uppercase letter, otherwise c.
- [`toupper`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/toupper.md) `<ctype.h>`: Returns the uppercase form of c if it is a lowercase letter, otherwise c.
- [`trunc`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/trunc.md) `<math.h>`: Returns x rounded toward zero to an integer value.
- [`truncf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/truncf.md) `<math.h>`: Returns x rounded toward zero to an integer value (float).
- [`ungetc`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/ungetc.md) `<stdio.h>`: Pushes the character c back onto stream so the next read returns it; returns c, or EOF on failure.
- [`unlink`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/unlink.md) `<unistd.h>`: Deletes the file at path; returns 0, or -1 with errno set (EISDIR for a folder, which rmdir deletes).
- [`vfprintf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/vfprintf.md) `<stdio.h>`: Like fprintf, with the arguments taken from a va_list.
- [`vfscanf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/vfscanf.md) `<stdio.h>`: Like fscanf, with the arguments taken from a va_list.
- [`vprintf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/vprintf.md) `<stdio.h>`: Like printf, with the arguments taken from a va_list.
- [`vscanf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/vscanf.md) `<stdio.h>`: Like scanf, with the arguments taken from a va_list.
- [`vsnprintf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/vsnprintf.md) `<stdio.h>`: Like snprintf, with the arguments taken from a va_list.
- [`vsprintf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/vsprintf.md) `<stdio.h>`: Like sprintf, with the arguments taken from a va_list.
- [`vsscanf`](https://asm-editor.specy.app/documentation/risc-v/runtime-library/vsscanf.md) `<stdio.h>`: Like sscanf, with the arguments taken from a va_list.
