Kaynağa Gözat

first commit

Stehpen Corya 8 ay önce
işleme
bd95d0bc69
100 değiştirilmiş dosya ile 1602 ekleme ve 0 silme
  1. 70 0
      PA11/pa11.c
  2. 69 0
      problems/ECE264Assignments/Fall2013/PA01/Makefile
  3. 123 0
      problems/ECE264Assignments/Fall2013/PA01/answer01.c
  4. 4 0
      problems/ECE264Assignments/Fall2013/PA01/expected/expected0
  5. 4 0
      problems/ECE264Assignments/Fall2013/PA01/expected/expected1
  6. 4 0
      problems/ECE264Assignments/Fall2013/PA01/expected/expected12
  7. 4 0
      problems/ECE264Assignments/Fall2013/PA01/expected/expected14
  8. 4 0
      problems/ECE264Assignments/Fall2013/PA01/expected/expected15
  9. 4 0
      problems/ECE264Assignments/Fall2013/PA01/expected/expected16
  10. 4 0
      problems/ECE264Assignments/Fall2013/PA01/expected/expected19
  11. 96 0
      problems/ECE264Assignments/Fall2013/PA01/inputs/input0
  12. 49 0
      problems/ECE264Assignments/Fall2013/PA01/inputs/input1
  13. 26 0
      problems/ECE264Assignments/Fall2013/PA01/inputs/input11
  14. 30 0
      problems/ECE264Assignments/Fall2013/PA01/inputs/input12
  15. 80 0
      problems/ECE264Assignments/Fall2013/PA01/inputs/input14
  16. 20 0
      problems/ECE264Assignments/Fall2013/PA01/inputs/input16
  17. 95 0
      problems/ECE264Assignments/Fall2013/PA01/inputs/input17
  18. 20 0
      problems/ECE264Assignments/Fall2013/PA01/inputs/input18
  19. 85 0
      problems/ECE264Assignments/Fall2013/PA01/inputs/input19
  20. 50 0
      problems/ECE264Assignments/Fall2013/PA01/inputs/input2
  21. 53 0
      problems/ECE264Assignments/Fall2013/PA01/inputs/input3
  22. 46 0
      problems/ECE264Assignments/Fall2013/PA01/inputs/input4
  23. 17 0
      problems/ECE264Assignments/Fall2013/PA01/inputs/input5
  24. 31 0
      problems/ECE264Assignments/Fall2013/PA01/inputs/input6
  25. 52 0
      problems/ECE264Assignments/Fall2013/PA01/inputs/input7
  26. 9 0
      problems/ECE264Assignments/Fall2013/PA01/pa01.h
  27. 70 0
      problems/ECE264Assignments/Fall2013/PA02/Makefile
  28. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_countchar
  29. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strcat
  30. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strcpy
  31. 6 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strdelete
  32. 6 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strinsert
  33. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strlen
  34. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strlower
  35. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strncat
  36. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strncpy
  37. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strstr
  38. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strupper
  39. 8 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_countchar
  40. 8 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strcpy
  41. 9 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strdelete
  42. 9 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strinsert
  43. 8 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strlen
  44. 8 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strlower
  45. 8 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strncat
  46. 8 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strncpy
  47. 8 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strstr
  48. 8 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strupper
  49. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_countchar
  50. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strcat
  51. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strcpy
  52. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strdelete
  53. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strinsert
  54. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strlen
  55. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strlower
  56. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strncat
  57. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strncpy
  58. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strstr
  59. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strupper
  60. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected3_my_strcat
  61. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected3_my_strcpy
  62. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected3_my_strdelete
  63. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected3_my_strinsert
  64. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected3_my_strlen
  65. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected3_my_strlower
  66. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected3_my_strncat
  67. 13 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected4_my_strlen
  68. 13 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected4_my_strncat
  69. 13 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected4_my_strncpy
  70. 13 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected4_my_strstr
  71. 13 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected4_my_strupper
  72. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_countchar
  73. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strcat
  74. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strcpy
  75. 6 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strdelete
  76. 6 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strinsert
  77. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strlen
  78. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strlower
  79. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strncat
  80. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strncpy
  81. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strupper
  82. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_countchar
  83. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strcat
  84. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strcpy
  85. 5 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strdelete
  86. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strlen
  87. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strlower
  88. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strncat
  89. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strncpy
  90. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strstr
  91. 4 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strupper
  92. 12 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_countchar
  93. 12 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_strcat
  94. 12 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_strcpy
  95. 13 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_strdelete
  96. 13 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_strinsert
  97. 12 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_strlen
  98. 12 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_strlower
  99. 12 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_strncat
  100. 12 0
      problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_strncpy

+ 70 - 0
PA11/pa11.c

@@ -0,0 +1,70 @@
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <libgen.h>
+
+#include "pa11.h"
+
+int main(int argc, char * * argv)
+{
+    if (argc < 3)
+	{
+	    fprintf(stderr, "Invalid arguments, please refer to "
+		    "the README file, or read the source for "
+		    "pa11.c\n");
+	    return EXIT_FAILURE;
+	}
+    char * state = argv[2];
+    if(!isValidState(state))
+	{
+	    fprintf(stderr, "Invalid state: %s\n", state);
+	    return EXIT_FAILURE;
+	}
+    if (strcmp(argv[1], "1") == 0)
+	{
+	    if (argc < 4)
+		{
+		    fprintf(stderr, "Invalid arguments for cmd=1\n");
+		    return EXIT_FAILURE;
+		}
+	    const char * movelist = argv[3];
+	    if(!isValidMoveList(movelist))
+		{
+		    fprintf(stderr, "Invalid movelist: %s\n", 
+			    movelist);
+		    return EXIT_FAILURE;
+		}
+	    processMoveList(state, movelist);
+	}
+    if (strcmp(argv[1], "2") == 0)
+	{
+	    if (argc < 4)
+		{		    
+		    fprintf(stderr, "Invalid arguments for cmd=2\n");
+		    return EXIT_FAILURE;
+		}
+	    int nummove = (int) strtol(argv[3], NULL, 10);
+	    if ((nummove < 0) || (nummove > 9))
+		{
+		    fprintf(stderr, "Expected n=[0..9], but got %d\n",
+			    nummove);
+		    return EXIT_FAILURE;
+		}
+	    MoveTree * tree = generateAll(state, nummove);
+	    MoveTree_print(tree);
+	    MoveTree_destroy(tree);
+	}
+    if (strcmp(argv[1], "3") == 0)
+	{
+	    char * movelist = solve(state);
+	    if(movelist == NULL) {
+		printf("No solution within %d steps\n", 
+		       MAX_SEARCH_DEPTH);
+	    } else {
+		printf("%s\n", movelist);
+	    }
+	    free(movelist);
+	}
+    return EXIT_SUCCESS;
+}

+ 69 - 0
problems/ECE264Assignments/Fall2013/PA01/Makefile

@@ -0,0 +1,69 @@
+
+GCC = gcc
+CFLAGS = -g -Wall -Wshadow -Wno-unused-variable
+LIBS =
+SOURCES = answer01.c pa01.c
+TARGET = pa01
+TESTCASES := $(shell seq 0 19)
+
+# -------------------------------------------------------------
+
+TESTS := $(addprefix test,${TESTCASES})
+
+.PHONY : all build clean environment help testall $(TESTS)
+.DEFAULT_GOAL := build
+
+OBJF = obj
+OBJS = $(patsubst %.c,$(OBJF)/%.o,$(SOURCES))
+
+-include $(SOURCES:%=$(OBJF)/%.P)
+
+all: | build testall
+
+testall: | $(TARGET) $(TESTS)
+
+build: $(TARGET)
+
+clean:
+	@cd $(CURDIR)
+	rm -rf $(TARGET) $(OBJF) outputs
+
+environment:
+	@cd $(CURDIR)
+	@mkdir -p outputs
+	@mkdir -p $(OBJF)
+
+help:
+	@echo
+	@echo "   You do NOT need to use make to run your program. (See below.)"
+	@echo
+	@echo "   make            Build $(TARGET)"
+	@echo "   make testall    Run /all/ testcases"
+	@echo "   make clean      Remove all temporary files"
+	@echo "   make help       Print this message"
+	@echo
+	@echo "   After building $(TARGET), you can run it manually as follows:"
+	@echo
+	@echo "      aturing > ./$(TARGET) -h"
+	@echo 
+	@echo "   It is highly recommended that you do this as you debug and"
+	@echo "   test your code."
+	@echo 
+	@echo "   There are 20 testcases. (i.e., 0 through 19.) You can run an "
+	@echo "   individual testcase as follows:"
+	@echo
+	@echo "   make test0      Run the zeroeth testcase"
+	@echo "   make test1      Run the first testcase"
+	@echo "   ...             etc."
+	@echo
+
+$(TARGET): $(OBJS) | environment
+	$(GCC) $(CFLAGS) $(OBJS) $(LIBS) -o $@
+
+$(OBJF)/%.o: %.c | environment
+	@$(GCC) -MM $(CFLAGS) $< | sed 's,^\([^ ]\),$(OBJF)\/\1,g' | sed '$$ s,$$, \\,' > $(OBJF)/$<.P
+	$(GCC) $(CFLAGS) -c -o $@ $<
+
+${TESTS}: test%: $(TARGET) | environment
+	@./bin/test.sh "$(TARGET)" inputs/input$* outputs/output$* expected/expected$* outputs/valgrind-log$*
+

+ 123 - 0
problems/ECE264Assignments/Fall2013/PA01/answer01.c

@@ -0,0 +1,123 @@
+/*
+ * Please fill the functions in this file.
+ */
+#include <stdio.h>
+#include "pa01.h"
+
+/* == Note 1 :: C does not initialize variables for you ==
+ *
+ * Please keep in mind that C does not initialize variables.
+ *
+ * int sum; 
+ *
+ * is different from
+ *
+ * int sum = 0;
+ *
+ * The value of sum is undefined (garbage) in the first case.
+ */
+
+/* == Note 2 :: Arrays are zero-indexed  ==
+ *
+ * If an array has "length" elements, then valid indices are between 0
+ * and length - 1, not between 1 and length. Thus, array[length] will
+ * access an invalid memory location and probably crash the program.
+ */
+
+/* addElement: sums the elements of an array of integers
+
+   Parameters:
+
+   array: an array of integers
+   length: the length of the array (i.e. the number of elements)
+   
+   Returns:
+
+   This function returns the sum of the elements.
+   For example, if
+   array[0] is 3
+   array[1] is 11
+   array[2] is 9
+   and length is 3
+   This function should return 3 + 11 + 9 = 23.
+
+   If the array has no elements (length is 0), then the function returns 0.
+*/
+int addElement(int * array, int length)
+{
+    return 0;
+}
+/*
+ * =================================================================
+ */
+/* countNegative: how many negatives values there are in an array
+
+   Parameters:
+
+   array: an array of integers
+   length: the length of the array (i.e. the number of elements)
+
+   Returns:
+
+   This function returns the number of negative elements in the array
+   For example, if
+   array[0] is -3
+   array[1] is 11
+   array[2] is -9
+   array[3] is 0
+   and length is 4
+   This function should return 2.
+   0 is not considered to be a negative number.
+*/
+int countNegative(int * array, int length)
+{
+    return 0;
+}
+/*
+ * =================================================================
+ */
+/* isIncreasing: Is an array of integers always increasing?
+
+   Parameters:
+
+   array: an array of integers
+   length: the length of the array (i.e. the number of elements)
+  
+   Returns:
+
+   This function returns 1 if the elements are increasing
+   (i.e. array[i] < array[j] for all 0 <= i < j < length).  If the
+   elements are not increasing, this function returns 0.
+
+   If the array has only one element (i.e. length is 1), the function
+   returns 1.  If the array has no elements (length is 0), the function
+   also returns 1.
+
+   Examples:
+
+   If
+   array[0] is 3
+   array[1] is 9
+   array[2] is 11
+   and length is 3
+   This function should return 1
+   
+   If 
+   array[0] is 3
+   array[1] is 11
+   array[2] is 9
+   and length is 3
+   This function should return 0
+
+   If 
+   array[0] is 3
+   array[1] is 3
+   array[2] is 9
+   and length is 3
+   This function should return 0
+
+*/
+int isIncreasing(int * array, int length)
+{
+    return 0;
+}

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA01/expected/expected0

@@ -0,0 +1,4 @@
+sum = -3772.
+The array has 54 negative elements.
+The elements are not increasing.
+

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA01/expected/expected1

@@ -0,0 +1,4 @@
+sum = -1852.
+The array has 25 negative elements.
+The elements are increasing.
+

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA01/expected/expected12

@@ -0,0 +1,4 @@
+sum = 592.
+The array has 15 negative elements.
+The elements are not increasing.
+

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA01/expected/expected14

@@ -0,0 +1,4 @@
+sum = 41733.
+The array has 0 negative elements.
+The elements are not increasing.
+

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA01/expected/expected15

@@ -0,0 +1,4 @@
+sum = -20338.
+The array has 28 negative elements.
+The elements are increasing.
+

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA01/expected/expected16

@@ -0,0 +1,4 @@
+sum = 825.
+The array has 7 negative elements.
+The elements are not increasing.
+

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA01/expected/expected19

@@ -0,0 +1,4 @@
+sum = 314513.
+The array has 0 negative elements.
+The elements are increasing.
+

+ 96 - 0
problems/ECE264Assignments/Fall2013/PA01/inputs/input0

@@ -0,0 +1,96 @@
+-1277
+415
+293
+-165
+-114
+-8
+149
+-79
+-138
+-473
+190
+-441
+263
+426
+40
+-74
+-328
+236
+-289
+-132
+67
+-71
+282
+30
+362
+-377
+-433
+-365
+429
+302
+-478
+-442
+-431
+-333
+-107
+-44
+-489
+-458
+-271
+-127
+-79
+419
+284
+37
+-302
+-176
+-185
+-130
+-87
+26
+-409
+480
+456
+373
+362
+-330
+496
+-219
+-195
+425
+-416
+-173
+-164
+5
+346
+229
+-187
+357
+-376
+395
+82
+45
+314
+-133
+-66
+-136
+-457
+250
+-413
+308
+-224
+-322
+288
+84
+-97
+151
+254
+-101
+432
+-440
+176
+-132
+239
+-488
+-274
+86

+ 49 - 0
problems/ECE264Assignments/Fall2013/PA01/inputs/input1

@@ -0,0 +1,49 @@
+-1295
+-1224
+-1189
+-1110
+-1042
+-1040
+-942
+-939
+-921
+-828
+-775
+-718
+-716
+-635
+-548
+-506
+-440
+-350
+-305
+-285
+-244
+-214
+-182
+-164
+-66
+6
+88
+164
+174
+202
+270
+327
+425
+479
+566
+632
+639
+723
+743
+768
+797
+869
+902
+932
+936
+956
+1027
+1096
+1105

+ 26 - 0
problems/ECE264Assignments/Fall2013/PA01/inputs/input11

@@ -0,0 +1,26 @@
+-1052
+-973
+-943
+-896
+-805
+-757
+-686
+-634
+-553
+-521
+-427
+-369
+-341
+-328
+-241
+-226
+-170
+-157
+-66
+-53
+27
+38
+108
+198
+273
+329

+ 30 - 0
problems/ECE264Assignments/Fall2013/PA01/inputs/input12

@@ -0,0 +1,30 @@
+-933
+487
+388
+-162
+66
+270
+-216
+356
+-83
+106
+-240
+349
+-263
+-295
+-441
+-283
+18
+445
+283
+373
+-42
+373
+137
+-211
+-17
+107
+-22
+257
+-186
+-29

+ 80 - 0
problems/ECE264Assignments/Fall2013/PA01/inputs/input14

@@ -0,0 +1,80 @@
+1199
+417
+839
+569
+363
+622
+794
+173
+847
+431
+462
+682
+390
+292
+791
+57
+115
+521
+157
+574
+491
+947
+951
+231
+21
+537
+740
+54
+30
+98
+325
+81
+516
+516
+2
+231
+139
+796
+404
+338
+580
+218
+21
+970
+862
+812
+379
+977
+685
+536
+904
+176
+483
+207
+759
+857
+744
+499
+911
+127
+950
+236
+560
+818
+105
+563
+49
+244
+711
+805
+934
+291
+375
+955
+614
+589
+768
+993
+918
+805

+ 20 - 0
problems/ECE264Assignments/Fall2013/PA01/inputs/input16

@@ -0,0 +1,20 @@
+-518
+-283
+336
+463
+-445
+-410
+358
+-370
+404
+71
+161
+133
+185
+289
+-427
+104
+351
+305
+-250
+368

+ 95 - 0
problems/ECE264Assignments/Fall2013/PA01/inputs/input17

@@ -0,0 +1,95 @@
+506
+602
+642
+692
+713
+781
+808
+872
+950
+1047
+1129
+1195
+1256
+1293
+1349
+1420
+1439
+1451
+1494
+1527
+1624
+1704
+1726
+1797
+1882
+1955
+1983
+2018
+2059
+2143
+2216
+2315
+2346
+2410
+2458
+2509
+2540
+2614
+2629
+2689
+2712
+2760
+2785
+2868
+2904
+2937
+2942
+2997
+3041
+3140
+3227
+3268
+3347
+3407
+3470
+3533
+3617
+3659
+3708
+3732
+3757
+3830
+3853
+3908
+3944
+3966
+4024
+4090
+4138
+4210
+4287
+4357
+4376
+4378
+4382
+4436
+4470
+4478
+4538
+4567
+4574
+4672
+4693
+4778
+4787
+4822
+4921
+5013
+5090
+5189
+5205
+5258
+5330
+5420
+5480

+ 20 - 0
problems/ECE264Assignments/Fall2013/PA01/inputs/input18

@@ -0,0 +1,20 @@
+516
+224
+109
+539
+0
+378
+109
+53
+81
+114
+338
+989
+426
+67
+147
+223
+787
+231
+532
+122

+ 85 - 0
problems/ECE264Assignments/Fall2013/PA01/inputs/input19

@@ -0,0 +1,85 @@
+1350
+1430
+1521
+1576
+1627
+1659
+1673
+1731
+1826
+1908
+1990
+1994
+2015
+2049
+2132
+2214
+2302
+2318
+2415
+2441
+2446
+2469
+2562
+2614
+2712
+2745
+2780
+2862
+2869
+2885
+2943
+2952
+3048
+3148
+3211
+3309
+3393
+3470
+3525
+3603
+3613
+3701
+3734
+3817
+3839
+3906
+3970
+4031
+4114
+4126
+4212
+4299
+4385
+4416
+4507
+4591
+4606
+4683
+4700
+4721
+4814
+4840
+4869
+4909
+4935
+5026
+5063
+5124
+5143
+5187
+5225
+5254
+5337
+5359
+5370
+5426
+5515
+5541
+5557
+5628
+5666
+5720
+5729
+5752
+5836

+ 50 - 0
problems/ECE264Assignments/Fall2013/PA01/inputs/input2

@@ -0,0 +1,50 @@
+-649
+296
+223
+118
+-255
+346
+-49
+421
+55
+-121
+-12
+264
+-272
+341
+-150
+-307
+0
+-466
+264
+-376
+414
+487
+356
+243
+-9
+-273
+-135
+359
+436
+-68
+51
+-63
+-272
+-225
+-93
+-26
+-379
+358
+-105
+-471
+-263
+-265
+293
+318
+-72
+-357
+-489
+428
+29
+276

+ 53 - 0
problems/ECE264Assignments/Fall2013/PA01/inputs/input3

@@ -0,0 +1,53 @@
+-1263
+-1249
+-1210
+-1203
+-1162
+-1157
+-1138
+-1109
+-1020
+-950
+-932
+-914
+-817
+-792
+-748
+-677
+-593
+-502
+-402
+-329
+-303
+-258
+-167
+-161
+-121
+-66
+21
+91
+174
+217
+282
+380
+388
+444
+449
+498
+510
+533
+562
+662
+706
+753
+822
+863
+886
+898
+909
+915
+917
+979
+1010
+1089
+1095

+ 46 - 0
problems/ECE264Assignments/Fall2013/PA01/inputs/input4

@@ -0,0 +1,46 @@
+944
+626
+522
+465
+708
+416
+282
+258
+924
+637
+62
+624
+600
+36
+452
+899
+379
+550
+468
+71
+973
+131
+881
+930
+933
+894
+660
+163
+199
+981
+899
+996
+959
+773
+813
+668
+190
+95
+926
+466
+84
+340
+90
+684
+376
+542

+ 17 - 0
problems/ECE264Assignments/Fall2013/PA01/inputs/input5

@@ -0,0 +1,17 @@
+-945
+-888
+-808
+-789
+-701
+-688
+-639
+-566
+-506
+-496
+-459
+-448
+-405
+-317
+-310
+-308
+-294

+ 31 - 0
problems/ECE264Assignments/Fall2013/PA01/inputs/input6

@@ -0,0 +1,31 @@
+755
+819
+599
+721
+904
+939
+811
+940
+667
+705
+228
+127
+150
+984
+658
+920
+224
+422
+269
+396
+81
+630
+84
+292
+972
+672
+850
+625
+385
+222
+299

+ 52 - 0
problems/ECE264Assignments/Fall2013/PA01/inputs/input7

@@ -0,0 +1,52 @@
+-1398
+-1384
+-1285
+-1194
+-1169
+-1078
+-1068
+-986
+-966
+-929
+-896
+-840
+-745
+-740
+-660
+-590
+-516
+-439
+-388
+-332
+-271
+-228
+-148
+-63
+31
+37
+59
+127
+132
+146
+208
+263
+290
+350
+395
+398
+401
+408
+493
+515
+558
+627
+656
+746
+819
+828
+887
+986
+1023
+1032
+1086
+1135

+ 9 - 0
problems/ECE264Assignments/Fall2013/PA01/pa01.h

@@ -0,0 +1,9 @@
+/*
+ * Do not modify this file
+ */
+#ifndef PA01_H
+#define PA01_H
+int addElement(int * array, int length);
+int countNegative(int * array, int length);
+int isIncreasing(int * array, int length);
+#endif

+ 70 - 0
problems/ECE264Assignments/Fall2013/PA02/Makefile

@@ -0,0 +1,70 @@
+
+GCC = gcc
+CFLAGS = -g -Wall -Wshadow -Wno-unused-variable
+LIBS =
+SOURCES = answer02.c pa02.c
+TARGET = pa02
+TESTT := my_strlen my_countchar my_strupper my_strlower my_strcpy my_strncpy my_strcat my_strncat my_strstr my_strinsert my_strdelete
+TESTN := $(shell seq 0 $(shell expr 10 \* $(shell echo "$(TESTT)" | wc -w) - 1))
+
+# -------------------------------------------------------------
+
+TESTS := $(addprefix test,${TESTN})
+
+.PHONY : all build clean environment help testall $(TESTS)
+.DEFAULT_GOAL := build
+
+OBJF = obj
+OBJS = $(patsubst %.c,$(OBJF)/%.o,$(SOURCES))
+
+-include $(SOURCES:%=$(OBJF)/%.P)
+
+all: | build testall
+
+testall: | $(TESTS)
+
+build: $(TARGET)
+
+clean:
+	@cd $(CURDIR)
+	rm -rf $(TARGET) $(OBJF) outputs
+
+environment:
+	@cd $(CURDIR)
+	@mkdir -p outputs
+	@mkdir -p $(OBJF)
+
+help:
+	@echo
+	@echo "   You do NOT need to use make to run your program. (See below.)"
+	@echo
+	@echo "   make            Build $(TARGET)"
+	@echo "   make testall    Run /all/ testcases"
+	@echo "   make clean      Remove all temporary files"
+	@echo "   make help       Print this message"
+	@echo
+	@echo "   After building $(TARGET), you can run it manually as follows:"
+	@echo
+	@echo "      aturing > ./$(TARGET) -h"
+	@echo 
+	@echo "   It is highly recommended that you do this as you debug and"
+	@echo "   test your code."
+	@echo 
+	@echo "   There are 110 testcases. (i.e., 0 through 109.) You can run an "
+	@echo "   individual testcase as follows:"
+	@echo
+	@echo "   make test0      Run the zeroeth testcase"
+	@echo "   make test1      Run the first testcase"
+	@echo "   ...             etc."
+	@echo
+
+$(TARGET): $(OBJS) | environment
+	$(GCC) $(CFLAGS) $(OBJS) $(LIBS) -o $@
+
+$(OBJF)/%.o: %.c | environment
+	@$(GCC) -MM $(CFLAGS) $< | sed 's,^\([^ ]\),$(OBJF)\/\1,g' | sed '$$ s,$$, \\,' > $(OBJF)/$<.P
+	$(GCC) $(CFLAGS) -c -o $@ $<
+
+${TESTS}: test%: $(TARGET) | environment
+	@./bin/test.sh "$(TARGET)" $(shell echo "$(TESTT)" | awk "{ print \$$$(shell expr 1 + $* / 10); }") inputs/input$(shell expr $* % 10) outputs/output$* expected/expected$(shell expr $* % 10)_$(shell echo "$(TESTT)" | awk "{ print \$$$(shell expr 1 + $* / 10); }") outputs/valgrind-log$*
+

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_countchar

@@ -0,0 +1,5 @@
+count(T): 1
+count(T): 1
+count(T): 1
+count(T): 1
+count(A): 1

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strcat

@@ -0,0 +1,5 @@
+Thy mission, Roman, is to rule the world Thy mission, Roman, is to rule the world
+There be thy arts There be thy arts
+To make peace rule among men To make peace rule among men
+To spare the vanquished To spare the vanquished
+And to war down the proud And to war down the proud

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strcpy

@@ -0,0 +1,5 @@
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.

+ 6 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strdelete

@@ -0,0 +1,6 @@
+[ down the proud
+he vanquished
+ace rule among men
+hy arts
+n, Roman, is to rule the world
+]

+ 6 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strinsert

@@ -0,0 +1,6 @@
+[And to war down the proud
+To spare the vanquished
+To make peace rule among men
+There be thy arts
+Thy mission, Roman, is to rule the world
+]

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strlen

@@ -0,0 +1,5 @@
+length: 40
+length: 17
+length: 28
+length: 23
+length: 25

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strlower

@@ -0,0 +1,5 @@
+lowercase: thy mission, roman, is to rule the world
+lowercase: there be thy arts
+lowercase: to make peace rule among men
+lowercase: to spare the vanquished
+lowercase: and to war down the proud

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strncat

@@ -0,0 +1,5 @@
+Thy mission, Roman, is to rule the world  .
+There be thy arts  .
+To make peace rule among men  .
+To spare the vanquished  .
+And to war down the proud  .

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strncpy

@@ -0,0 +1,5 @@
+Thy m
+There
+To ma
+To sp
+And t

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strstr

@@ -0,0 +1,5 @@
+1
+1
+1
+1
+1

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected0_my_strupper

@@ -0,0 +1,5 @@
+uppercase: THY MISSION, ROMAN, IS TO RULE THE WORLD
+uppercase: THERE BE THY ARTS
+uppercase: TO MAKE PEACE RULE AMONG MEN
+uppercase: TO SPARE THE VANQUISHED
+uppercase: AND TO WAR DOWN THE PROUD

+ 8 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_countchar

@@ -0,0 +1,8 @@
+count(T): 1
+count(S): 1
+count(N): 1
+count(O): 1
+count(I): 1
+count(O): 2
+count(O): 1
+count(I): 1

+ 8 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strcpy

@@ -0,0 +1,8 @@
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.

+ 9 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strdelete

@@ -0,0 +1,9 @@
+[d of Mordor where the Shadows lie.
+o bring them all and in the darkness bind them
+o rule them all, One Ring to find them,
+d of Mordor where the Shadows lie.
+e Dark Lord on his dark throne
+ortal Men doomed to die,
+the Dwarf-lords in their halls of stone,
+s for the Elven-kings under the sky,
+]

+ 9 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strinsert

@@ -0,0 +1,9 @@
+[In the Land of Mordor where the Shadows lie.
+One Ring to bring them all and in the darkness bind them
+One Ring to rule them all, One Ring to find them,
+In the Land of Mordor where the Shadows lie.
+One for the Dark Lord on his dark throne
+Nine for Mortal Men doomed to die,
+Seven for the Dwarf-lords in their halls of stone,
+Three Rings for the Elven-kings under the sky,
+]

+ 8 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strlen

@@ -0,0 +1,8 @@
+length: 46
+length: 50
+length: 34
+length: 40
+length: 44
+length: 49
+length: 56
+length: 44

+ 8 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strlower

@@ -0,0 +1,8 @@
+lowercase: three rings for the elven-kings under the sky,
+lowercase: seven for the dwarf-lords in their halls of stone,
+lowercase: nine for mortal men doomed to die,
+lowercase: one for the dark lord on his dark throne
+lowercase: in the land of mordor where the shadows lie.
+lowercase: one ring to rule them all, one ring to find them,
+lowercase: one ring to bring them all and in the darkness bind them
+lowercase: in the land of mordor where the shadows lie.

+ 8 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strncat

@@ -0,0 +1,8 @@
+Three Rings for the Elven-kings under the sky,  .
+Seven for the Dwarf-lords in their halls of stone,  .
+Nine for Mortal Men doomed to die,  .
+One for the Dark Lord on his dark throne  .
+In the Land of Mordor where the Shadows lie.  .
+One Ring to rule them all, One Ring to find them,  .
+One Ring to bring them all and in the darkness bind them  .
+In the Land of Mordor where the Shadows lie.  .

+ 8 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strncpy

@@ -0,0 +1,8 @@
+Three
+Seven
+Nine 
+One f
+In th
+One R
+One R
+In th

+ 8 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strstr

@@ -0,0 +1,8 @@
+1
+1
+1
+1
+1
+1
+1
+1

+ 8 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected1_my_strupper

@@ -0,0 +1,8 @@
+uppercase: THREE RINGS FOR THE ELVEN-KINGS UNDER THE SKY,
+uppercase: SEVEN FOR THE DWARF-LORDS IN THEIR HALLS OF STONE,
+uppercase: NINE FOR MORTAL MEN DOOMED TO DIE,
+uppercase: ONE FOR THE DARK LORD ON HIS DARK THRONE
+uppercase: IN THE LAND OF MORDOR WHERE THE SHADOWS LIE.
+uppercase: ONE RING TO RULE THEM ALL, ONE RING TO FIND THEM,
+uppercase: ONE RING TO BRING THEM ALL AND IN THE DARKNESS BIND THEM
+uppercase: IN THE LAND OF MORDOR WHERE THE SHADOWS LIE.

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_countchar

@@ -0,0 +1,4 @@
+count(I): 1
+count(R): 1
+count(D): 2
+count(P): 2

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strcat

@@ -0,0 +1,4 @@
+It is a period of civil war. It is a period of civil war.
+Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.
+During the battle, Rebel spies managed to steal secret plans to the Empire's ultimate weapon, the DEATH STAR, an armored space station with enough power to destroy an entire planet. During the battle, Rebel spies managed to steal secret plans to the Empire's ultimate weapon, the DEATH STAR, an armored space station with enough power to destroy an entire planet.
+Pursued by the Empire's sinister agents, Princess Leia races home aboard her starship, custodian of the stolen plans that can save her people and restore freedom to the galaxy... Pursued by the Empire's sinister agents, Princess Leia races home aboard her starship, custodian of the stolen plans that can save her people and restore freedom to the galaxy...

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strcpy

@@ -0,0 +1,4 @@
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strdelete

@@ -0,0 +1,5 @@
+[ the Empire's sinister agents, Princess Leia races home aboard her starship, custodian of the stolen plans that can save her people and restore freedom to the galaxy...
+ battle, Rebel spies managed to steal secret plans to the Empire's ultimate weapon, the DEATH STAR, an armored space station with enough power to destroy an entire planet.
+eships, striking from a hidden base, have won their first victory against the evil Galactic Empire.
+riod of civil war.
+]

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strinsert

@@ -0,0 +1,5 @@
+[Pursued by the Empire's sinister agents, Princess Leia races home aboard her starship, custodian of the stolen plans that can save her people and restore freedom to the galaxy...
+During the battle, Rebel spies managed to steal secret plans to the Empire's ultimate weapon, the DEATH STAR, an armored space station with enough power to destroy an entire planet.
+Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.
+It is a period of civil war.
+]

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strlen

@@ -0,0 +1,4 @@
+length: 28
+length: 109
+length: 181
+length: 178

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strlower

@@ -0,0 +1,4 @@
+lowercase: it is a period of civil war.
+lowercase: rebel spaceships, striking from a hidden base, have won their first victory against the evil galactic empire.
+lowercase: during the battle, rebel spies managed to steal secret plans to the empire's ultimate weapon, the death star, an armored space station with enough power to destroy an entire planet.
+lowercase: pursued by the empire's sinister agents, princess leia races home aboard her starship, custodian of the stolen plans that can save her people and restore freedom to the galaxy...

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strncat

@@ -0,0 +1,4 @@
+It is a period of civil war.  .
+Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.  .
+During the battle, Rebel spies managed to steal secret plans to the Empire's ultimate weapon, the DEATH STAR, an armored space station with enough power to destroy an entire planet.  .
+Pursued by the Empire's sinister agents, Princess Leia races home aboard her starship, custodian of the stolen plans that can save her people and restore freedom to the galaxy...  .

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strncpy

@@ -0,0 +1,4 @@
+It is
+Rebel
+Durin
+Pursu

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strstr

@@ -0,0 +1,4 @@
+1
+1
+1
+1

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected2_my_strupper

@@ -0,0 +1,4 @@
+uppercase: IT IS A PERIOD OF CIVIL WAR.
+uppercase: REBEL SPACESHIPS, STRIKING FROM A HIDDEN BASE, HAVE WON THEIR FIRST VICTORY AGAINST THE EVIL GALACTIC EMPIRE.
+uppercase: DURING THE BATTLE, REBEL SPIES MANAGED TO STEAL SECRET PLANS TO THE EMPIRE'S ULTIMATE WEAPON, THE DEATH STAR, AN ARMORED SPACE STATION WITH ENOUGH POWER TO DESTROY AN ENTIRE PLANET.
+uppercase: PURSUED BY THE EMPIRE'S SINISTER AGENTS, PRINCESS LEIA RACES HOME ABOARD HER STARSHIP, CUSTODIAN OF THE STOLEN PLANS THAT CAN SAVE HER PEOPLE AND RESTORE FREEDOM TO THE GALAXY...

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected3_my_strcat

@@ -0,0 +1,4 @@
+To see a world in a grain of sand, To see a world in a grain of sand,
+And a heaven in a wild flower, And a heaven in a wild flower,
+Hold infinity in the palm of your hand, Hold infinity in the palm of your hand,
+And eternity in an hour. And eternity in an hour.

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected3_my_strcpy

@@ -0,0 +1,4 @@
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected3_my_strdelete

@@ -0,0 +1,5 @@
+[ty in an hour.
+ity in the palm of your hand,
+en in a wild flower,
+orld in a grain of sand,
+]

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected3_my_strinsert

@@ -0,0 +1,5 @@
+[And eternity in an hour.
+Hold infinity in the palm of your hand,
+And a heaven in a wild flower,
+To see a world in a grain of sand,
+]

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected3_my_strlen

@@ -0,0 +1,4 @@
+length: 34
+length: 30
+length: 39
+length: 24

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected3_my_strlower

@@ -0,0 +1,4 @@
+lowercase: to see a world in a grain of sand,
+lowercase: and a heaven in a wild flower,
+lowercase: hold infinity in the palm of your hand,
+lowercase: and eternity in an hour.

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected3_my_strncat

@@ -0,0 +1,4 @@
+To see a world in a grain of sand,  .
+And a heaven in a wild flower,  .
+Hold infinity in the palm of your hand,  .
+And eternity in an hour.  .

+ 13 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected4_my_strlen

@@ -0,0 +1,13 @@
+length: 32
+length: 34
+length: 40
+length: 30
+length: 41
+length: 60
+length: 66
+length: 57
+length: 35
+length: 44
+length: 64
+length: 28
+length: 35

+ 13 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected4_my_strncat

@@ -0,0 +1,13 @@
+Dune: The Building Of A Dynasty.  .
+The planet Arrakis, known as Dune.  .
+Land of sand; home of the Spice Melange.  .
+The Spice controls the Empire.  .
+Whoever controls Dune controls the Spice.  .
+The Emperor has proposed a challenge to each of the Houses.   .
+Emperor: The House that produces the most Spice will control Dune.  .
+There are no set territories and no rules of engagement.   .
+Narrator: Vast armies have arrived.  .
+Now, three houses fight for control of Dune.  .
+The noble Atreides, the insidious Ordos, and the evil Harkonnen.  .
+Only one house will prevail.  .
+Your battle for Dune begins... now.  .

+ 13 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected4_my_strncpy

@@ -0,0 +1,13 @@
+Dune:
+The p
+Land 
+The S
+Whoev
+The E
+Emper
+There
+Narra
+Now, 
+The n
+Only 
+Your 

+ 13 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected4_my_strstr

@@ -0,0 +1,13 @@
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1

+ 13 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected4_my_strupper

@@ -0,0 +1,13 @@
+uppercase: DUNE: THE BUILDING OF A DYNASTY.
+uppercase: THE PLANET ARRAKIS, KNOWN AS DUNE.
+uppercase: LAND OF SAND; HOME OF THE SPICE MELANGE.
+uppercase: THE SPICE CONTROLS THE EMPIRE.
+uppercase: WHOEVER CONTROLS DUNE CONTROLS THE SPICE.
+uppercase: THE EMPEROR HAS PROPOSED A CHALLENGE TO EACH OF THE HOUSES. 
+uppercase: EMPEROR: THE HOUSE THAT PRODUCES THE MOST SPICE WILL CONTROL DUNE.
+uppercase: THERE ARE NO SET TERRITORIES AND NO RULES OF ENGAGEMENT. 
+uppercase: NARRATOR: VAST ARMIES HAVE ARRIVED.
+uppercase: NOW, THREE HOUSES FIGHT FOR CONTROL OF DUNE.
+uppercase: THE NOBLE ATREIDES, THE INSIDIOUS ORDOS, AND THE EVIL HARKONNEN.
+uppercase: ONLY ONE HOUSE WILL PREVAIL.
+uppercase: YOUR BATTLE FOR DUNE BEGINS... NOW.

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_countchar

@@ -0,0 +1,5 @@
+count(D): 1
+count(W): 1
+count(T): 1
+count(W): 1
+count(O): 2

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strcat

@@ -0,0 +1,5 @@
+Darth Vader: I've been waiting for you, Obi-Wan. Darth Vader: I've been waiting for you, Obi-Wan.
+We meet again, at last. We meet again, at last.
+The circle is now complete. The circle is now complete.
+When I left you, I was but the learner; now *I* am the master.  When I left you, I was but the learner; now *I* am the master. 
+Obi-Wan: Only a master of evil, Darth. Obi-Wan: Only a master of evil, Darth.

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strcpy

@@ -0,0 +1,5 @@
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.

+ 6 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strdelete

@@ -0,0 +1,6 @@
+[nly a master of evil, Darth.
+t you, I was but the learner; now *I* am the master. 
+ is now complete.
+ain, at last.
+r: I've been waiting for you, Obi-Wan.
+]

+ 6 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strinsert

@@ -0,0 +1,6 @@
+[Obi-Wan: Only a master of evil, Darth.
+When I left you, I was but the learner; now *I* am the master. 
+The circle is now complete.
+We meet again, at last.
+Darth Vader: I've been waiting for you, Obi-Wan.
+]

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strlen

@@ -0,0 +1,5 @@
+length: 48
+length: 23
+length: 27
+length: 63
+length: 38

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strlower

@@ -0,0 +1,5 @@
+lowercase: darth vader: i've been waiting for you, obi-wan.
+lowercase: we meet again, at last.
+lowercase: the circle is now complete.
+lowercase: when i left you, i was but the learner; now *i* am the master. 
+lowercase: obi-wan: only a master of evil, darth.

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strncat

@@ -0,0 +1,5 @@
+Darth Vader: I've been waiting for you, Obi-Wan.  .
+We meet again, at last.  .
+The circle is now complete.  .
+When I left you, I was but the learner; now *I* am the master.   .
+Obi-Wan: Only a master of evil, Darth.  .

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strncpy

@@ -0,0 +1,5 @@
+Darth
+We me
+The c
+When 
+Obi-W

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected5_my_strupper

@@ -0,0 +1,5 @@
+uppercase: DARTH VADER: I'VE BEEN WAITING FOR YOU, OBI-WAN.
+uppercase: WE MEET AGAIN, AT LAST.
+uppercase: THE CIRCLE IS NOW COMPLETE.
+uppercase: WHEN I LEFT YOU, I WAS BUT THE LEARNER; NOW *I* AM THE MASTER. 
+uppercase: OBI-WAN: ONLY A MASTER OF EVIL, DARTH.

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_countchar

@@ -0,0 +1,4 @@
+count(H): 1
+count(B): 1
+count(B): 1
+count(C): 1

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strcat

@@ -0,0 +1,4 @@
+Ho! Tom Bombadil, Tom Bombadillo! Ho! Tom Bombadil, Tom Bombadillo!
+By water, wood and hill, by the reed and willow, By water, wood and hill, by the reed and willow,
+By fire, sun and moon, hearken now and hear us! By fire, sun and moon, hearken now and hear us!
+Come, Tom Bombadil, for our need is near us! Come, Tom Bombadil, for our need is near us!

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strcpy

@@ -0,0 +1,4 @@
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.

+ 5 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strdelete

@@ -0,0 +1,5 @@
+[Bombadil, for our need is near us!
+un and moon, hearken now and hear us!
+wood and hill, by the reed and willow,
+mbadil, Tom Bombadillo!
+]

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strlen

@@ -0,0 +1,4 @@
+length: 33
+length: 48
+length: 47
+length: 44

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strlower

@@ -0,0 +1,4 @@
+lowercase: ho! tom bombadil, tom bombadillo!
+lowercase: by water, wood and hill, by the reed and willow,
+lowercase: by fire, sun and moon, hearken now and hear us!
+lowercase: come, tom bombadil, for our need is near us!

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strncat

@@ -0,0 +1,4 @@
+Ho! Tom Bombadil, Tom Bombadillo!  .
+By water, wood and hill, by the reed and willow,  .
+By fire, sun and moon, hearken now and hear us!  .
+Come, Tom Bombadil, for our need is near us!  .

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strncpy

@@ -0,0 +1,4 @@
+Ho! T
+By wa
+By fi
+Come,

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strstr

@@ -0,0 +1,4 @@
+1
+1
+1
+1

+ 4 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected6_my_strupper

@@ -0,0 +1,4 @@
+uppercase: HO! TOM BOMBADIL, TOM BOMBADILLO!
+uppercase: BY WATER, WOOD AND HILL, BY THE REED AND WILLOW,
+uppercase: BY FIRE, SUN AND MOON, HEARKEN NOW AND HEAR US!
+uppercase: COME, TOM BOMBADIL, FOR OUR NEED IS NEAR US!

+ 12 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_countchar

@@ -0,0 +1,12 @@
+count(I): 1
+count(I): 1
+count(I): 1
+count(Y): 1
+count(Y): 1
+count(I): 1
+count(I): 1
+count(I): 1
+count(I): 2
+count(I): 1
+count(A): 1
+count(W): 1

+ 12 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_strcat

@@ -0,0 +1,12 @@
+I know you're out there. I know you're out there.
+I can feel you now. I can feel you now.
+I know that you're afraid. I know that you're afraid.
+You're afraid of us. You're afraid of us.
+You're afraid of change. You're afraid of change.
+I don't know the future. I don't know the future.
+I didn't come here to tell you how this is going to end. I didn't come here to tell you how this is going to end.
+I came here to tell you how it's going to begin. I came here to tell you how it's going to begin.
+I'm going to hang up this phone, and then I'm going to show these people what you don't want them to see. I'm going to hang up this phone, and then I'm going to show these people what you don't want them to see.
+I'm going to show them a world... without you. I'm going to show them a world... without you.
+A world without rules and controls, without borders or boundaries; a world where anything is possible. A world without rules and controls, without borders or boundaries; a world where anything is possible.
+Where we go from there is a choice I leave to you. Where we go from there is a choice I leave to you.

+ 12 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_strcpy

@@ -0,0 +1,12 @@
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.
+Copying this String.

+ 13 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_strdelete

@@ -0,0 +1,13 @@
+[o from there is a choice I leave to you.
+thout rules and controls, without borders or boundaries; a world where anything is possible.
+to show them a world... without you.
+to hang up this phone, and then I'm going to show these people what you don't want them to see.
+e to tell you how it's going to begin.
+ome here to tell you how this is going to end.
+ow the future.
+aid of change.
+aid of us.
+t you're afraid.
+ you now.
+'re out there.
+]

+ 13 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_strinsert

@@ -0,0 +1,13 @@
+[Where we go from there is a choice I leave to you.
+A world without rules and controls, without borders or boundaries; a world where anything is possible.
+I'm going to show them a world... without you.
+I'm going to hang up this phone, and then I'm going to show these people what you don't want them to see.
+I came here to tell you how it's going to begin.
+I didn't come here to tell you how this is going to end.
+I don't know the future.
+You're afraid of change.
+You're afraid of us.
+I know that you're afraid.
+I can feel you now.
+I know you're out there.
+]

+ 12 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_strlen

@@ -0,0 +1,12 @@
+length: 24
+length: 19
+length: 26
+length: 20
+length: 24
+length: 24
+length: 56
+length: 48
+length: 105
+length: 46
+length: 102
+length: 50

+ 12 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_strlower

@@ -0,0 +1,12 @@
+lowercase: i know you're out there.
+lowercase: i can feel you now.
+lowercase: i know that you're afraid.
+lowercase: you're afraid of us.
+lowercase: you're afraid of change.
+lowercase: i don't know the future.
+lowercase: i didn't come here to tell you how this is going to end.
+lowercase: i came here to tell you how it's going to begin.
+lowercase: i'm going to hang up this phone, and then i'm going to show these people what you don't want them to see.
+lowercase: i'm going to show them a world... without you.
+lowercase: a world without rules and controls, without borders or boundaries; a world where anything is possible.
+lowercase: where we go from there is a choice i leave to you.

+ 12 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_strncat

@@ -0,0 +1,12 @@
+I know you're out there.  .
+I can feel you now.  .
+I know that you're afraid.  .
+You're afraid of us.  .
+You're afraid of change.  .
+I don't know the future.  .
+I didn't come here to tell you how this is going to end.  .
+I came here to tell you how it's going to begin.  .
+I'm going to hang up this phone, and then I'm going to show these people what you don't want them to see.  .
+I'm going to show them a world... without you.  .
+A world without rules and controls, without borders or boundaries; a world where anything is possible.  .
+Where we go from there is a choice I leave to you.  .

+ 12 - 0
problems/ECE264Assignments/Fall2013/PA02/expected/expected7_my_strncpy

@@ -0,0 +1,12 @@
+I kno
+I can
+I kno
+You'r
+You'r
+I don
+I did
+I cam
+I'm g
+I'm g
+A wor
+Where

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor