![]() |
Problem passing multi-dimensional array to function
Hello, I receive the following error when compiling my program.
p8.c: In function `main': p8.c:20: warning: passing arg 2 of `CountCharacter' from incompatible pointer type I can see the problem is that I'm not passing the type of data I think I am. I basically want to pass a command line argument which is a filename to my function. My understanding is that when I call CountCharacter(TargetChar, argv[i]), argv[i] is the address of where the filename string begins. Please help me out. :
#include <stdio.h> |
Please ignore this. The problem was that I wasn't passing stdin as a string.
|
Glad to see you got it working.
|
| All times are GMT -5. The time now is 6:28 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC