Resume in C
gist.github.com
Resume in C
1–10 of 115 posts
Re: Resume in C
#2 --- a/resume.c
+++ b/resume.c
@@ -118,7 +118,7 @@ void print_job(job_t * job) {
}
}
-int main(int argc, char * argv) {
+int main(int argc, char ** argv) {
int i = 0;
while (jobs[i]) {
@@ -127,4 +127,4 @@ int main(int argc, char * argv) {
}
return 0;
-}
\ No newline at end of file
+}Re: Resume in C
#3Re: Resume in C
#4Re: Resume in C
#5 school_t uiuc = {
.school = "University of Illinois at Urbana-Champaign",
.location = "Urbana, IL",
.program = "BS Computer Science",
.started = 1251158400,
.left = 1336608000,
.accomplishments = {
"Minor in International Studies in Engineering, Japan",
"Focused on systems software courses",
NULL
}
};Re: Resume in C
#6Re: Resume in C
#7Wow, I didn't know this was valid C code, it's pretty convenient. school_t uiuc = { .school = "University of Illinois at Urbana-Champaign", .location = "Urbana, IL", .program = "BS Computer Science", .started = 1251158400, .left = 1336608000, .accomplishments = { "Minor in International Studies in Engineering, Japan", "Focused on systems software courses", NULL } };
Re: Resume in C
#8Re: Resume in C
#9It's cheeky, but then again it is a project you can show someone. Graphic designers get to make fancy schmancy resumes to impress their potential employers, so why not programmer? Better make sure there are no bugs in it though.
Re: Resume in C
#10* The struct members and variables pointing at string literals should be const.
* People do break this all the time but typedefs ending in _t are reserved by POSIX.
* Your C99 style struct initializers are valid but it's notable that one popular compiler, MSVC, will not like them.
* If we are being idiomatic I would suggest pointer arithmetic to iterate instead of using a counter i.