Files

18 lines
504 B
C
Raw Permalink Normal View History

2026-03-08 16:21:05 -05:00
#ifndef ATOM_INCLUDED
#define ATOM_INCLUDED
#include <stdint.h>
// Return the length of a given atom.
extern int atom_len(const char *str);
// Create or retrieve an atom corresponding to a string with a given length
extern const char *atom_new (const char *str, int64_t len);
// Get the atom corresponding to a string
extern const char *atom_string(const char *str);
// Function to convert an integer to an atom (string representation of the number)
extern const char *atom_int(int64_t n);
#endif