• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1439
  • Last Modified:

How to know if a WCHAR[20] is empty???

If i have this:

WCHAR image[20];

How do I know if "image" is empty (blank).???
0
DAE
Asked:
DAE
  • 3
  • 3
1 Solution
 
SteHCommented:
if (0 == wcslen)
   // it is empty
0
 
SteHCommented:
Sorry it should be
if (0 == wcslen (image))
   /// ...

or course.
0
 
DAEAuthor Commented:
Thanks SteH.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
DAEAuthor Commented:
And what is the correct way to make empty a WCHAR[x] var?
0
 
SteHCommented:
wcscpy (image, L""); // or _T("")
0
 
DAEAuthor Commented:
THX
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now