Código C++:
Ver original#include <string.h>
#include <conio.h>
#include <iostream>
using namespace std;
int func(char* chars, int length);
int main()
{
int count=0;
char* str="hola";
count=func(str, 4);
cout << "count for '" << str << "': " << count << endl;
return 0;
}
int func(char* chars, int len)
{
int count=0;
char* voc="aeiou";
while(chars!=NULL && ++count)
return count;
}
cambiale el cout por la version printf de C y listo