跳到主要內容
- Mark the prototype
//_PROTOTYPE(int main, (int argc, char **argv));
//_PROTOTYPE(int doit, (char *name, struct utimbuf tvp));
//_PROTOTYPE(void usage, (void));
//_PROTOTYPE(time_t parsetime, (const char *string, formatT format));
- change the function to
time_t parsetime(const char *string,formatT format)
int main(int argc,char **argv)
int doit(char *name,struct utimbuf tvp)
- Android.mk
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= touch.c
LOCAL_MODULE := touch
include $(BUILD_EXECUTABLE)
- Reference
- touch.c
留言
張貼留言