By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,712 Members | 1,271 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,712 IT Pros & Developers. It's quick & easy.

where does _snprintf goes in tc 3.0

P: 16
Expand|Select|Wrap|Line Numbers
  1. int main(int argc, char* argv[])
  2. {
  3. char buf[64] = {};
  4. _snprintf(buf, sizeof(buf) - 1, argv[1]);
  5. return printf("%s\n", buf);
  6. }
  7.  
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............please help me out
Jan 15 '08 #1
Share this Question
Share on Google+
2 Replies


Savage
Expert 100+
P: 1,764
I don't think tc 3.0 has _snprintf.
Why are you using tc at all?
It's ancient..
Jan 15 '08 #2

Expert 100+
P: 671
I guess the question is already answered.
Jan 15 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.