Browse files

Adding the code that explains the movie Inception in 'C' language and…

… tries to implement INCEPTION movie concept programmatically
  • Loading branch information...
0 parents commit ddc5968d9bbf9b3459e60eaaf1b8a42618bb9dc9 @karthick18 committed Jul 24, 2010
Showing with 1,611 additions and 0 deletions.
  1. +17 −0 Makefile
  2. BIN inception
  3. +1,371 −0 inception.c
  4. +84 −0 inception.h
  5. BIN inception.o
  6. +139 −0 list.h
@@ -0,0 +1,17 @@
+CC := gcc
+CFLAGS := -g -Wall -m32
+SRC_FILES := $(wildcard *.c)
+OBJ_FILES := $(SRC_FILES:%.c=%.o)
+LDLIBS := -lpthread -lrt
+TARGET := inception
+all: $(TARGET)
+ $(CC) $(CFLAGS) -g -o $@ $^ $(LDLIBS)
+ $(CC) $(CFLAGS) -c -o $@ $<
+ rm -f $(OBJ_FILES) *~ $(TARGET)
BIN inception
Binary file not shown.
Oops, something went wrong.

3 comments on commit ddc5968


What makes you think I am not the original author of list.h? Kidding :-)
The seeds of list_head struct,list_add/del, are a bit like linux kernel list.h but broadly the dup_list,list_dump,list_destroy,etc. are completely mine.
Feel free to use it as its GPL. If you want me to change the license, I can even do that :-). In short, just take it.


Thanks. It would be better to write this inside the file.
As this is "a bit like Linux kernel list.h" I will avoid it and try to find a clearly BSD-licensed one.


Ok. But check linux kernel list.h and see if there is any resemblance to the core functions above. If you find any,let me know. I quit :-)

Please sign in to comment.