VIEWABLEXPRSTR(3)

πŸ“¦ version 5.1.1, in fedora 43, fedora 44

πŸ’– VIEWABLEXPRSTR πŸ’–

okay bestie, welcome to viewablexprstr from the ABL FUNCTIONS manual (section 3, we love a library call) 🌸


✨ NAME ✨

viewablexprstr β€” she displays an expression in a str. that's it, that's the job, and she does it flawlessly πŸ’…


πŸ›οΈ 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 πŸ‡«πŸ‡·βœ¨ (yes the whole thing, iconic academic lineage fr fr)


πŸŽ€ SYNOPSIS πŸŽ€

#include "abl101.h"
char *viewablexprstr( Expr, Mode )
  chain_list βˆ—Expr;
  int         Mode;

πŸ¦‹ PARAMETERS πŸ¦‹

  • Expr β€” the expression you wanna display. your little tree of vibes 🌳
  • Mode β€” the notation type. which fit are we wearing today πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

viewablexprstr displays Expr in a string, using the notation specified by Mode. no cap, it just writes that whole expression out as text for you 🫢

these notation types are available:

  • ABL_VIEW_INFIX
  • ABL_VIEW_PREFIX
  • ABL_VIEW_POSTFIX
  • ABL_VIEW_VHDL

pick your fighter, they're all serving ✨


πŸ”₯ RETURN VALUE πŸ”₯

viewablexprstr returns a pointer to the string where the expression has been displayed in.

NOT ME FREEING THAT STRING 😭 β€” this string MUSTN'T be freed. do not free() her. she lives there. she's rent-free and she's staying πŸ’€

🌈 EXAMPLE 🌈

#include "abl101.h"
  chain_list βˆ—Expr;
  char       βˆ—String;
  Expr = createabloper( ABL_OR );
  addablhexpr( Expr, createablatom( "a" ) );
  addablhexpr( Expr, createablatom( "b" ) );
  /* displays (a or b) */
  String = viewablexprstr( Expr, ABL_VIEW_VHDL );
  printf( String );

see how it prints (a or b)?? yeah. main character behavior honestly πŸ‘‘


πŸ‘€ SEE ALSO πŸ‘€

go read those too, iykyk πŸ“šπŸ’–


πŸ› BUG REPORT πŸ›

this tool is under development at the ASIM department of the LIP6 laboratory. we need your feedback to improve documentation and tools πŸ™ˆ please tell them everything, they're literally asking 🫢


and that's the whole page bestie!! brought to you by ASIM/LIP6, dated October 1, 1997, page VIEWABLEXPRSTR(3) ⭐ slay, stay safe, don't free the string πŸ’…πŸ’–