[][src]Crate tinyrlibc

A tiny C library, written in Rust.

See README.md for more details.

This file is Copyright (c) Jonathan 'theJPster' Pallant 2019 Licensed under the Blue Oak Model Licence 1.0.0

See each module for its respective licence.

Structs

CStringIter

This allows you to iterate a null-terminated string in a relatively simple way.

Functions

atoi

Converts a null-terminated string representing a decimal integer, into an integer. No indication of error.

itoa

Formats the given value i, with the given radix, into the given buffer (of the given length).

strchr

Rust implementation of C library function strchr

strcmp

Rust implementation of C library function strcmp

strlen

Rust implementation of C library function strlen

strncmp

Rust implementation of C library function strncmp. Passing NULL (core::ptr::null()) gives undefined behaviour.

strstr

Rust implementation of C library function strstr

strtol

Rust implementation of C library function strtol.

Type Definitions

CChar

Represents an 8-bit char. Rust does not (and will never) support platforms where char is not 8-bits long.

CInt

We assume int is 32-bits.

CLong

We assume long int is 32-bits.

CLongLong

long long int is always 64-bits long.

CUInt

We assume unsigned int is 32-bits.

CULong

We assume unsigned long int is 32-bits.

CULongLong

unsigned long long int is always 64-bits long.