Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 14149

indexes() is a function with CS50's mostly-implemented server.c program in PSET6. It must check, in order, whether index.php or index.html exists inside of path. It returns to path to match if so, else it returns NULL.

0 votes
1 answer
41 views

pset6 server2 /dir/ malloc [SOLVED]

/server public Using /home/ubuntu/workspace/pset6/public for server's root Listening on port 8080 GET /test/ HTTP/1.1 HTTP/1.1 200 OK ~/workspace/pset6/ $ indexes: bool indexes(char *path) { bool … index) { list(path); continue; } EDIT: Now use arrays instead of calloc: indexes: bool indexes(char *path) { bool rt = true; char php[strlen(path) + strlen("index.php") + 1]; strcpy …
alx - recommends codidact's user avatar