Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Como declarar um string de caracteres estendidos

From Wiki
Jump to: navigation, search
Article Metadata

Compatibilidade
Plataforma(s):
Symbian

Artigo
Tradução:
Por kyllercg
Última alteração feita por hamishwillee em 07 May 2013


O código a seguir mostra como declarar uma string de caracteres estendidos (wide-char string) em Open C.

Para declarar uma string de caracteres estendidos, 'L' deve ser adicionado como prefixo da string.

#include <wchar.h>
 
int main(void)
{
wchar_t *wptr = L"Exemplo do FNWiki para strings de caracteres estendidos";
 
wprintf(L"%ls\n",wptr);
getwchar();
}

Links relacionados

This page was last modified on 7 May 2013, at 23:56.
223 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×