The forum is being replaced with new software. Please use the replacement hosted at https://forum.angband.live/ in the meantime. These forums will stay open until migrating old topics can be achieved, though posting will eventually be locked. Thankyou for your patience.

z-form.c comments...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fruviad
    Apprentice
    • Jan 2011
    • 66

    z-form.c comments...

    z-form.c has the following in the initial comments block following the GPL and a few include statements:

    38 * Note that some "limitations" are enforced by the current implementation,
    39 * for example, no "format sequence" can exceed 100 characters, including any
    40 * "length" restrictions, and the result of combining and "format sequence"
    41 * with the relevent "arguments" must not exceed 1000 characters.


    Should the "and the result of combining and" on line 40 actually read "and the result of combining any"?

    source (pun intended): https://github.com/angband/angband/b...r/src/z-form.c
  • Pete Mack
    Prophet
    • Apr 2007
    • 6697

    #2
    Yes, though it looks like the actual limits are 128 and 1024, respectively.
    Code:
    	/* Format sequence */
    	char aux[128];
    
    	/* Resulting string */
    	char tmp[1024];

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎
    MMOMBuy POE 2 Currency