#include <chemfiles.h>
#include <assert.h>
#include <string.h>

int main() {
    // [example]
    CHFL_ATOM* atom = chfl_atom("Na");

    chfl_atom_set_type(atom, "Cs");

    char type[32] = {0};
    chfl_atom_type(atom, type, sizeof(type));
    assert(strcmp(type, "Cs") == 0);

    chfl_atom_free(atom);
    // [example]
    return 0;
}
