Boost logo

Boost Users :

From: chun ping wang (cablepuff_at_[hidden])
Date: 2007-07-21 11:29:44


sorry i meant like how to hand rolled my own implemenation .. example...

int my_sprintf(char* s, size_t size, ....)
{
    // write to s the formatted value..
    // return the total number of characters written.
}

On 7/20/07, Andrej van der Zee <mavdzee_at_[hidden]> wrote:
>
> char str[64];
> std::cout << boost::str(boost::format("%s") % str);
>
> --- chun ping wang <cablepuff_at_[hidden]> wrote:
>
> > Hmm is there a way for boost::format to function
> > like snprintf.
> >
> > Example
> >
> > char str[64];
> >
> > std::cout << boost::format("%s") % str;
> > > _______________________________________________
> > Boost-users mailing list
> > Boost-users_at_[hidden]
> >
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>
>
> ___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try
> it
> now.
> http://uk.answers.yahoo.com/
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net