This maybe a dumb question ( I've always used old borland c++ 3.0 for
dos) but wouldn't it be:
sprintf(buf + 5, "Hello);
because the length of hello is five.
( Personaly I use strcat for this kinda stuff )
I Chose No Name wrote:
>
> Okay, I was just wondering what the difference is between these two lines:
> ..
> sprintf(buf, "%sHello", buf);
> sprintf(buf + strlen(buf), "Hello");
> ..
> Thanks :)
>
> +------------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
> +------------------------------------------------------------+
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST