GETABLEXPRNUMOCC(3)

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

πŸŽ€ NAME πŸŽ€

okay so this page is all about getablexprnumocc, from the ABL FUNCTIONS manual, and it answers one very specific question: how many times a name appears in an expression. literally that's the whole vibe. πŸ’…

🌈 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 searching inside. πŸ‘€
  • Name β€” the name to find. the little celebrity we're counting. ⭐

πŸ’– DESCRIPTION πŸ’–

getablexprnumocc gives the number of occurrents of Name in Expr. that's it, that's the whole function. no cap. 🫢

πŸ”₯ RETURN VALUE πŸ”₯

getablexprnumocc returns the number of occurrents of Name in Expr. so like, the count. the total. the final answer. πŸ’―

🌸 EXAMPLE 🌸

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

the printf displays 1, iykyk. πŸŽ€

πŸ‘‘ 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. bestie they are literally asking, so send the feedback. πŸ™ˆπŸ’Œ


πŸ’– later, bestie β€” this page comes from ASIM/LIP6, dated October 1, 1997, and its manual title is GETABLEXPRNUMOCC(3). πŸ’…βœ¨

πŸ“¦ where this page comes from