Initial commit, stdint, added comments
This commit is contained in:
17
include/atom.h
Normal file
17
include/atom.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user