libpulsar
A modular compiler for the pulsar programming language
Loading...
Searching...
No Matches
Macros | Functions | Variables
itoa.c File Reference
#include "itoa.h"

Go to the source code of this file.

Macros

#define ITOA_BUFFER_SIZE   64
 
#define _iota_routine(v)
 

Functions

STR ps_itoa (int v)
 Returns a read-only string of the digits of v.
 
STR ps_ztoa (usize v)
 Returns a read-only string of the digits of v.
 

Variables

char buffer [ITOA_BUFFER_SIZE]
 

Macro Definition Documentation

◆ _iota_routine

#define _iota_routine (   v)
Value:
do { \
while (v) { \
buffer[--i] = '0' + (v % 10); \
v /= 10; \
} \
} while (0)
char buffer[ITOA_BUFFER_SIZE]
Definition itoa.c:11

Definition at line 13 of file itoa.c.

◆ ITOA_BUFFER_SIZE

#define ITOA_BUFFER_SIZE   64

Definition at line 10 of file itoa.c.

Function Documentation

◆ ps_itoa()

STR ps_itoa ( int  v)

Returns a read-only string of the digits of v.

This string is always invalidated upon a subsequent call to ps_itoa.

Definition at line 21 of file itoa.c.

◆ ps_ztoa()

STR ps_ztoa ( usize  v)

Returns a read-only string of the digits of v.

This string is always invalidated upon a subsequent call to ps_ztoa.

Definition at line 40 of file itoa.c.

Variable Documentation

◆ buffer

char buffer[ITOA_BUFFER_SIZE]

Definition at line 11 of file itoa.c.