where does _snprintf goes in tc 3.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zonar00
    New Member
    • Oct 2007
    • 16

    where does _snprintf goes in tc 3.0

    Code:
    int main(int argc, char* argv[])
    {
    char buf[64] = {};
    _snprintf(buf, sizeof(buf) - 1, argv[1]);
    return printf("%s\n", buf);
    }
    when the code is compiled under tc 3.0 the _snprintf gives an undefined declration/memeber error.

    i failed to understand for the reasons why as _snprintf is defined uder the lib stdio.h but it seems the lib doesn't have a definition of it.

    Do i have to update the lib or............p lease help me out
  • Savage
    Recognized Expert Top Contributor
    • Feb 2007
    • 1759

    #2
    I don't think tc 3.0 has _snprintf.
    Why are you using tc at all?
    It's ancient..

    Comment

    • oler1s
      Recognized Expert Contributor
      • Aug 2007
      • 671

      #3
      I guess the question is already answered.

      Comment

      Working...