我有

int chop (char* input, unsigned int length)
{
 for (int chopper = 0; chopper < = length; chopper++)
 {
   //how to pass 1byte this input to another function
   //Will this for loop help?
 }
}


如何从此输入中提取一个字节进行进一步处理?
谢谢

最佳答案

int chop (char* input, unsigned int length)
{
 for (int chopper = 0; chopper < = length; chopper++)
 {
   doSomething(input[chopper]);
 }
}

09-07 10:01