Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ Programming ➜ General ➜ Slprintf

Slprintf

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Greven   Canada  (835 posts)  Bio
Date Sun 25 Jul 2004 07:26 AM (UTC)
Message
I don't supposed someone happens to have the slprintf code available to them? I'm not sure of licenses and stuff, but I'm fairly sure that the freebsd developers didn't restrict it. If someone does have it, that would be great, thanks.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 25 Jul 2004 10:03 PM (UTC)
Message
I don't know the slprintf function. Is that a typo? In any case a Google search should reveal variations on printf. Here is one I found:

http://www.sqlite.org/cvstrac/getfile/sqlite/src/printf.c?v=1.19


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #2 on Sun 25 Jul 2004 10:05 PM (UTC)
Message
Slprintf is to snprintf as strlcpy is to strncpy, it always null termintes the string properly, and does not 0 fill the rest of the string, as I understand it.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,543 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.