KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Which header file should I invoke with #include to be able to use PATH_MAX as an int for sizing a string? I want to be able to declare: char *current_path[PATH_MAX]; But when I do so my compiler (Clang/LLVM on Linux) issues the following error: recursive_find6.c:29:20: error: use of undeclared identifier 'PATH_MAX' char *current_path[PATH_MAX]; ^ I tried doing a google search but still no luck. #include <limits.h> Does NOT fix the problem/error. Am I also correct that the value of PATH_MAX is an int?
Tags (comma-separated)
Save Edits
Cancel