VIEWABLEXPRSTR(3)

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

✨ VIEWABLEXPRSTR(3) ✨

okay so this page is from the ABL FUNCTIONS manual, and bestie, it's literally about viewablexprstrβ€”the function that displays an expression in a str. πŸ’…

πŸŽ€ NAME πŸŽ€

viewablexprstr β€” displays an expression in a str. ✨

🌈 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"
char *viewablexprstr( Expr, Mode )
  chain_list βˆ—Expr;
  int         Mode;

πŸ“ PARAMETERS πŸ“

  • Expr β€” the expression to display. that's the main character here. πŸ‘‘
  • Mode β€” the notation type. it decides the format vibe. πŸ’«

πŸ’– DESCRIPTION πŸ’–

okay so viewablexprstr displays Expr in a string, with the notation specified by Mode. The following notation types are available: ABL_VIEW_INFIX, ABL_VIEW_PREFIX, ABL_VIEW_POSTFIX or ABL_VIEW_VHDL. 🌸

πŸ”₯ RETURN VALUE πŸ”₯

viewablexprstr returns a pointer to the string where the expression has been displayed in. This string MUSTN'T be freed. 🫢

bestie, do not free that string. not even a little. periodt. πŸ’€

🌷 EXAMPLE 🌷

here's the example from the page, slay:

#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 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. πŸ™ˆ


xoxo, ASIM/LIP6 πŸ’Œ October 1, 1997 πŸ’Œ VIEWABLEXPRSTR(3) 🫢

πŸ“¦ where this page comes from