470,863 Members | 1,274 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,863 developers. It's quick & easy.

where does _snprintf goes in tc 3.0

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. }
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
2 1621
1,764 Expert 1GB
I don't think tc 3.0 has _snprintf.
Why are you using tc at all?
It's ancient..
Jan 15 '08 #2
671 Expert 512MB
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.

Similar topics

5 posts views Thread by Jay | last post: by
8 posts views Thread by romayankin | last post: by
41 posts views Thread by Miroslaw Makowiecki | last post: by
25 posts views Thread by sidd | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.