+/**
+ * \fn int strlen(const char *str)
+ * \brief
+ */
+int strlen(const char *str)
+{
+ int len = 0;
+ while(*str) len++,str++;
+ return len;
+}
+
+/**
+ * \fn int file_exists(char *filename)
+ * \brief Checks if a file exists
+ */
+int file_exists(char *filename)
+{
+ int fd;
+ //fd = open(filename, OPENFLAG_READ);
+ fd = open(filename, 0);
+ if(fd == -1) return 0;
+ close(fd);
+ return 1;
+}