Author Topic: sprintf()  (Read 6228 times)

ronburk

  • Community Member
  • Posts: 22
  • Hero Points: 3
sprintf()
« on: September 02, 2006, 06:29:19 AM »
I'm taking a stab at actually making some useful forms for a local project with Slick-C. I'm immediately struck by the pain of not being able to find a sprintf()-like function for quickly producing precisely formatted strings from a variety of variable types.

Is there any function like that around that I've just missed?

Dennis

  • Senior Community Member
  • Posts: 3961
  • Hero Points: 517
Re: sprintf()
« Reply #1 on: September 22, 2006, 01:33:53 PM »
Usually there's not much of a need, since Slick-C has implicit string concatenation, but the answer to your question is nls().  Why is it named nls()?  Because snl() was already taken by a popular telivision series.  :P