GETABLEXPRNUMATOM(3)

πŸ“¦ version 5.1.1-unstable-2025-02, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the GETABLEXPRNUMATOM(3) page β€” it's living in the ABL FUNCTIONS manual, and we're about to make it make sense πŸ’…

getablexprnumatom β€” gives the number of atom in an expression. That's the whole name vibe: you pass an expression, it tells you how many atoms are in it. Periodt.

🌈 ORIGIN 🌈

This software belongs to the ALLIANCE CAD SYSTEM, developed by the ASIM team at the LIP6 laboratory of Université Pierre et Marie CURIE, in Paris, France. Iconic academic lineage, no cap ✨

✨ SYNOPSIS ✨

#include "abl101.h"
long getablexprnumatom( Expr )
  chain_list βˆ—Expr;

So yeah, you include "abl101.h", call getablexprnumatom( Expr ), and the return type is long πŸ”₯

πŸŽ€ PARAMETERS πŸŽ€

  • Expr β€” Expression. That's your expression bestie, the thing whose atoms are getting counted πŸ’–

πŸ’… DESCRIPTION πŸ’…

getablexprnumatom gives the number of atom in Expr. No side quests, no plot twists β€” it just gives you the number of atom in the expression you hand it. Slay.

πŸ”₯ RETURN VALUE πŸ”₯

getablexprnumatom returns the number of atom in Expr. That's the value you get back, and it's literally the number of atom in Expr πŸ‘‘

🧚 EXAMPLE 🧚

#include "abl101.h"
  chain_list βˆ—Expr;
  Expr = createablbinexpr( ABL_AND,
                           createablatom( "'0'" ),
                           createablatom( "'1'" ) );
  /* displays 2 */
  printf( "%d", getablexprnumatom( Expr ) );

The comment in the code says it displays 2, and that's the flex: the example expression gets counted, and the output is 2 ⭐

πŸ‘‘ SEE ALSO πŸ‘‘

πŸ’€ BUG REPORT πŸ’€

This tool is under development at the ASIM department of the LIP6 laboratory. They need your feedback to improve documentation and tools β€” so if something's giving bug energy, speak up, bestie 🫢


πŸ’Œ signed off by ASIM/LIP6 β€” October 1, 1997 β€” for the GETABLEXPRNUMATOM(3) girlies πŸ’–

πŸ“¦ where this page comes from