#41 StrCat problem

compiler
closed-duplicate
NXC (53)
5
2009-11-23
2007-10-18
Anonymous
No

Hi,

I think that this may be a bug. Whe using other functions inside StrCat call, it returns:

# Error: string constant or variable of type string expected
# Error: ')' expected
...
# Error: Unmatched close parenthesis

This happends when i do something like that:

string str = StrCat("Number: ", NumToStr(12));

while this is ok:

string str = NumToStr(ArrayLen(arr));

PD: There is a way to define a function with variable number of arguments?

Discussion

  • John Hansen

    John Hansen - 2009-11-23

    This defect is a duplicate. Use strcat instead of StrCat. This new API function is included in the latest test release of NBC/NXC.

     
  • John Hansen

    John Hansen - 2009-11-23
    • status: open --> closed-duplicate
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks