Commit Graph
100 Commits
Author SHA1 Message Date
Dan Buch 2345f4fa0b Adding back in some comments for line number matchiness 2012-02-13 22:03:16 -05:00
Dan Buch 0b956cbf06 Adding back the -std argument to CFLAGS so that we're allowed to use '//' comments 2012-02-13 21:54:10 -05:00
Dan Buch c2d4d59032 Upgrading to valgrind 3.7.0 since I'm on linux3 2012-02-12 13:24:31 -05:00
Dan Buch 5494981c64 wherps, no shebang line thar 2012-02-12 13:11:30 -05:00
Dan Buch 27b496fbe3 While re-reading through ex4, it seems a shell script has been added for installing valgrind (yay!) 2012-02-12 13:11:03 -05:00
Dan Buch e5fffdeaf1 Working through more compiler warnings... 2012-02-11 21:44:35 -05:00
Dan Buch 97043b1831 Extending CFLAGS a bit so that stuff breaks if it ain't right 2012-02-11 21:22:19 -05:00
Dan Buch 898c6e4be1 Getting rid of some more compiler warnings 2012-02-11 14:39:50 -05:00
Dan Buch 8ad2b3d4ca Forgot to clean up after myself a bit 2012-02-11 14:33:56 -05:00
Dan Buch bb0ac185fe Perhaps incorrectly fixing another format sequence warning 2012-02-11 13:26:39 -05:00
Dan Buch 1f224f98ef Fixing some format sequences to get rid of warnings 2012-02-11 13:24:36 -05:00
Dan Buch 313b7e6e44 Filling in the devpkg main executable, almost ready for challenge and mid-term (?) 2011-11-17 07:55:03 -05:00
Dan Buch 61c100d6dc Finally fixing the compilation error related to apr by defining _LARGEFILE64_SOURCE 2011-11-16 09:10:55 -05:00
Dan Buch 8e5f3ee27d Done up through the commands.* files, but still getting compilation errors related to apr (?) 2011-11-16 08:58:37 -05:00
Dan Buch 4d9a65545c Working through ch27 devpkg, though still having compilation problems with apr_errno.h 2011-11-15 21:44:11 -05:00
Dan Buch e4ce3ea6cc First version of makefile for devpkg 2011-11-15 19:21:53 -05:00
Dan Buch fcef08e87e Stubbing in layout for devpkg 2011-11-15 19:15:43 -05:00
Dan Buch ee0d1a4319 Shell script to install the APR stuff that will be used while making devpkg in ch27 ex26 2011-11-15 19:09:23 -05:00
Dan Buch 499f82221a Adding some fuzzing input for doing mem check stuff in ex25 2011-11-13 09:40:48 -05:00
Dan Buch 21ecef64a6 First working version of ch26 ex25 2011-11-12 20:20:28 -05:00
Dan Buch e1a390dd08 One more exercise with IO functions. 2011-11-12 13:43:44 -05:00
Dan Buch 1789da0d74 Playing with freopen to redirect stdout. 2011-11-12 11:05:16 -05:00
Dan Buch b1260e7f5c adding a script to help me check for my uses of the io functions 2011-11-12 10:40:00 -05:00
Dan Buch 3b738faa65 Trying and failing to use fcloseall. 2011-11-12 10:35:59 -05:00
Dan Buch 11139d2f67 Adding another io functions exercise for ch25 2011-11-11 08:58:43 -05:00
Dan Buch 2e0a5d5c99 Breaking out ex24 iofunctions files and writing a shell-based test thingy 2011-11-11 08:22:26 -05:00
Dan Buch b5b0213c5d Working on more example usages of io functions for ch25 2011-11-10 19:56:32 -05:00
Dan Buch 912eb6a143 Working through usages of all I/O functions whil in chapter 25 2011-11-08 08:21:40 -05:00
Dan Buch 340b1f207d Using atoi and strtod instead of fscanf 2011-11-06 17:04:46 -05:00
Dan Buch 74e3d00e44 Setting back to correct version using fgets 2011-11-06 09:23:44 -05:00
Dan Buch 6f8c69f763 Crappy version using gets instead of fgets 2011-11-06 09:19:25 -05:00
Dan Buch a0ebd0b587 Setting back to proper version of ex24.c 2011-11-06 09:16:12 -05:00
Dan Buch afc7edba40 Busted version of ex24.c with fscanf instead of fgets 2011-11-06 08:15:32 -05:00
Dan Buch 0a6404f838 First working version of ch25 ex24.c 2011-11-06 08:12:39 -05:00
Dan Buch 566a7584d7 First version of ch24 ex23.c 2011-11-04 09:02:59 -04:00
Dan Buch 22c3d73692 Using pointers to access previously sheltered variables 2011-11-04 08:43:16 -04:00
Dan Buch c8233ae231 Minor (silly) change to output 2011-11-04 08:24:07 -04:00
Dan Buch 601f722221 doing extra credit for ch23 ex22 2011-11-04 00:01:16 -04:00
Dan Buch 316ce7f8be cleaning up makefile stuff for ex22 2011-11-01 22:05:27 -04:00
Dan Buch f2110a5d13 Working version of ex22 2011-11-01 21:56:34 -04:00
Dan Buch 877763c15c Starting to work through ch23 ex22 2011-11-01 21:16:22 -04:00
Dan Buch c2615babf7 Fixing some compiler warnings. 2011-11-01 08:06:00 -04:00
Dan Buch 86d78ce333 Printing out a bunch more sizes for ex21. 2011-11-01 08:03:40 -04:00
Dan Buch 418a1264c6 Yet more printing of type sizes (no surprises yet). 2011-10-28 08:34:28 -04:00
Dan Buch 59d68e04c8 Printing out more values defined in stdint.h 2011-10-28 08:28:12 -04:00
Dan Buch 991a9f26b4 Printing out some type sizes while working through ex21 2011-10-28 08:23:31 -04:00
Dan Buch 284f7bc843 Worked through ex20 2011-10-27 21:14:28 -04:00
Dan Buch 341d626870 Working through extra credit for ch20 ex19 2011-10-26 04:21:16 -04:00
Dan Buch 874eb4f3a2 Adding a bunch of asserts 2011-10-26 03:47:15 -04:00
Dan Buch e69dc72f9c Moving the "clean" target for ex19 into the correct file 2011-10-25 21:21:02 -04:00
Dan Buch 5bf9ce7c23 Cleaning everything during make clean 2011-10-25 21:19:49 -04:00
Dan Buch 891013a781 adding a few asserts for ex19 2011-10-25 21:17:09 -04:00
Dan Buch 1695ec3796 Adding the game implementation for ex19 2011-10-25 21:11:14 -04:00
Dan Buch ae4c0fdaa2 Adding the header file and separate makefile for ex19 2011-10-25 20:42:56 -04:00
Dan Buch 62dab95f9c Adding first version of object.c for ch20 ex19 2011-10-25 20:35:38 -04:00
Dan Buch 237f86c62e adding new object.h for ch.20 ex.19 2011-10-25 20:11:42 -04:00
Dan Buch aab442042b adding the bit of tomfoolery which looks at the raw byte code of functions 2011-10-23 23:07:53 -04:00
Dan Buch 032fd49d5d first working version of ex18.c 2011-10-23 22:59:23 -04:00
Dan Buch 314faf66f8 busted, but really must move along... 2011-10-12 08:04:23 -04:00
Dan Buch ab98180af0 BUSTED while trying to do extra credit #2 2011-09-23 22:54:52 -04:00
Dan Buch c5a1f90200 augmenting "die" to close db connection 2011-09-21 22:30:46 -04:00
Dan Buch 198b54d316 fixing (?) the strncpy bug 2011-09-21 22:23:37 -04:00
Dan Buch 791f3b1327 altering to match book source code so that I can reliably spot line ref errors 2011-09-21 13:24:43 -04:00
Dan Buch c64e1beeaa first working version of ex17.c 2011-09-20 15:15:43 -04:00
Dan Buch f7b89eb28f back to version that uses malloc/free and pointers 2011-09-20 14:39:07 -04:00
Dan Buch 9d258d22b8 version of ex16 with structs created on the stack, using dot syntax instead of ->, passing by value 2011-09-20 14:38:34 -04:00
Dan Buch 55fddaff46 first working version of ex16 2011-09-20 14:32:33 -04:00
Dan Buch 4d824d341f switching for-loops to while-loops 2011-09-19 23:09:29 -04:00
Dan Buch a584141d4d treating pointer args as arrays 2011-09-19 23:06:33 -04:00
Dan Buch bf6752edd6 using separate funcs for each way of looping/printing 2011-09-19 23:05:31 -04:00
Dan Buch 0a0fc453c5 back to version with long main func 2011-09-19 22:59:40 -04:00
Dan Buch 728a7c5bd8 using separate func for printing different formats, but still need to write different funcs for different ways of looping? 2011-09-19 22:58:45 -04:00
Dan Buch 9dfa986b5d printing addresses of argv members 2011-09-19 22:49:41 -04:00
Dan Buch 971363ba89 printing members of argv with pointer arithmetic 2011-09-19 22:41:32 -04:00
Dan Buch c1ab498db3 back to mixed pointers and arrays version 2011-09-19 19:08:19 -04:00
Dan Buch 1b7572c786 using only pointers instead of array indexing 2011-09-19 19:06:10 -04:00
Dan Buch 22e3ed5406 back to working 2011-09-19 13:19:28 -04:00
Dan Buch bdeaaf48f5 breaking by pointing at wrong array 2011-09-19 13:19:12 -04:00
Dan Buch 8c6e140dad adding in comments so that line numbers match up (which I should have been doing all along) 2011-09-18 13:34:09 -04:00
Dan Buch 9158c349b3 first version of exercise 15 2011-09-18 13:30:03 -04:00
Dan Buch 1e1ffb3f9d back to printing alpha and blanks 2011-09-18 10:41:52 -04:00
Dan Buch f7f7f29a59 printing alnum and not just alpha 2011-09-18 10:41:35 -04:00
Dan Buch c9de7b1c13 using strlen instead of null terminator 2011-09-18 10:40:21 -04:00
Dan Buch 20da5c59fd removing "can_print_it" 2011-09-18 10:37:53 -04:00
Dan Buch f380dab295 first working version of ex14 2011-09-18 10:35:00 -04:00
Dan Buch d4c567fd4d back to using switch 2011-09-13 23:07:39 -04:00
Dan Buch 9f7dd8283f using if-statement instead of switch-statement 2011-09-13 23:07:15 -04:00
Dan Buch 4c87139ab0 handling all args passed 2011-09-13 23:05:09 -04:00
Dan Buch d85c6d97eb converting to lowercase and eliminating doubled-up case labels 2011-09-13 23:01:10 -04:00
Dan Buch 0b7dbc78b4 fixing again 2011-09-13 22:51:08 -04:00
Dan Buch 4bbd9c87a5 switching on non-ascii value 2011-09-13 22:51:00 -04:00
Dan Buch 80c1c5d5f3 fixing again 2011-09-13 22:49:31 -04:00
Dan Buch 49383187bb omitting default: 2011-09-13 22:49:26 -04:00
Dan Buch bfe47afbf2 fixing again 2011-09-13 22:45:59 -04:00
Dan Buch cbd2bc9cf5 commenting out a break 2011-09-13 22:45:49 -04:00
Dan Buch 64879fb2ad minor touchup, covering other case(s) for "y" 2011-09-13 22:44:00 -04:00
Dan Buch 049e7d4825 first working version of ex13 2011-09-13 21:43:47 -04:00
Dan Buch 2a59add795 first version of ex12 2011-09-10 11:54:21 -04:00
Dan Buch 34d54382d4 Merge branch 'master' of github.com:meatballhat/lcthw-remnants 2011-09-10 01:16:14 -04:00
Dan Buch 5f06f804b1 cleaning up gitignore and Makefile so that they don't have to be updated every time a new .c file is added 2011-09-10 01:15:38 -04:00