TagLib::String to char?

Sander Jansen s.jansen at gmail.com
Thu Mar 27 16:50:52 CET 2008


 Look in taglib/tstring.h, you can always try using "toCString"...

Cheers,
Sander

On Thu, Mar 27, 2008 at 10:35 AM, Christian EJlertsen <ce at entwined.dk> wrote:
> Hello Everybody
>  I know this is a newbie coder question so i thank you for your patience
>  in advance,
>  Is there any way to cast convert TagLib::String to a char, const char?
>  If so how could the below look if it should work?
>
>  --
>  char *buf2 = new char[tag->artist().length()];
>   strcpy(buf2, tagCastedToChar);
>  --
>
>  Thank you in advance
>  Christian
>
>
>
>  _______________________________________________
>  taglib-devel mailing list
>  taglib-devel at kde.org
>  https://mail.kde.org/mailman/listinfo/taglib-devel
>


More information about the taglib-devel mailing list