那错了呢?
#include<stdio.h>void fun(char *a ,int *t)
{
int i,j=0;
for (i=0;a[i]!=0;i++}
if (a[i]>='0'&&a[i]<='9')
j++;
*t=j;
}
main()
{
char a[80]="sd85df56df4a5";
int t;
printf("the original is:%s/n",a);
fun(a,&t);
printf("the result is :%d/n",t);
}