Announcement

Collapse
No announcement yet.

putstrCentred does not seem to work w/ a pointer to a string

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • putstrCentred does not seem to work w/ a pointer to a string

    What am I doing wrong?

    var NumberStr[4], NumberStrPtr;

    NumberStrPtr := str_Ptr( NumberStr );
    str_Cat( NumberStrPtr, "0" );
    putstrCentred( 10, 10, NumberStrPtr );

    Nothing shows on the screen.

  • #2

    Hello,

    May I know what you would like to achieve with this?

    If you want to print the contents of NumberStr, you could try using putstrCentered(10,10,NumberStr) instead.

    If you want to print the length of NumberStr, you can try print(strlen(NumberStr));

    Best regards,
    Michael

    Comment

    Working...
    X