GETABLEXPRNUMOCC(3)

๐Ÿ“ฆ version 5.1.1, in fedora 43, fedora 44

๐Ÿ’– GETABLEXPRNUMOCC ๐Ÿ’–

okay bestie, welcome to the getablexprnumocc(3) page โ€” it lives in the ABL FUNCTIONS section of the manual (yes, section 3, we love a library call) ๐Ÿ‘‘


โœจ NAME โœจ

getablexprnumocc โ€” how many times a name appears in an expression. that's it, that's the whole job ๐ŸŽ€


๐ŸŒธ 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. ๐Ÿ‡ซ๐Ÿ‡ทโœจ


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

#include "abl101.h"
long getablexprnumocc( Expr, Name )
  chain_list โˆ—Expr;
  char       โˆ—Name;

๐Ÿ’… PARAMETERS ๐Ÿ’…

  • Expr โ€” the Expression, bestie. the thing we're snooping through ๐Ÿ”
  • Name โ€” the Name to find. the one we're counting, the main character of this function fr ๐Ÿ’ซ

๐ŸŒˆ DESCRIPTION ๐ŸŒˆ

getablexprnumocc gives the number of occurrents of Name in Expr. like, literally counts them up and hands you the number. no cap ๐Ÿงฎ๐Ÿ’–


โญ RETURN VALUE โญ

getablexprnumocc returns number of occurrents of Name in Expr. yes the return value section is basically the description again, and honestly? iconic of it. periodt ๐Ÿ’…


๐Ÿ“ EXAMPLE ๐Ÿ“

#include "abl101.h"
  chain_list โˆ—Expr;
  Expr = createablbinexpr( ABL_AND,
                           createablatom( "a" ),
                           createablatom( "b" ) );
  /* displays 1 */
  printf( "%d", getablexprnumocc( Expr, "a" ) );

see how it prints 1? cause "a" shows up exactly once. ate ๐Ÿ’ฏ


๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘


๐Ÿ™ˆ BUG REPORT ๐Ÿ™ˆ

This tool is under development at the ASIM department of the LIP6 laboratory.

We need your feedback to improve documentation and tools. so like, if something's giving broken, tell them, bestie, they're literally asking ๐Ÿซถ


ngl this page is short but it's a whole vibe. count your occurrents, stay hydrated, and remember: one Name, one Expr, one very straightforward long ๐Ÿ’œ

that's the whole page, queen โ€” brought to you by ASIM/LIP6, dated October 1, 1997, filed under GETABLEXPRNUMOCC(3) in the ABL FUNCTIONS manual. go count some occurrents, you've got this ๐ŸŒŸ