From efd4b2645e3fd3c3cdd7b65501a0e7ae26d03c59 Mon Sep 17 00:00:00 2001 From: Ankit Raj Date: Wed, 21 Jun 2017 11:00:07 +0530 Subject: Functions added - string related and signal processing --- src/c/string/strchr/gstrchra.c | 33 +++++++++++++++++++++++++++++++++ src/c/string/strchr/int_strchr.h | 25 +++++++++++++++++++++++++ src/c/string/strchr/strchr.h | 25 +++++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 src/c/string/strchr/gstrchra.c create mode 100644 src/c/string/strchr/int_strchr.h create mode 100644 src/c/string/strchr/strchr.h (limited to 'src/c/string/strchr') diff --git a/src/c/string/strchr/gstrchra.c b/src/c/string/strchr/gstrchra.c new file mode 100644 index 0000000..f2f5435 --- /dev/null +++ b/src/c/string/strchr/gstrchra.c @@ -0,0 +1,33 @@ +/* Copyright (C) 2017 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Organization: FOSSEE, IIT Bombay + Author: Ankit Raj + Email: toolbox@scilab.in +*/ +#include +#include +#include "strchr.h" + +void gstrchra(char* str,int size,char* key,int size2,char* out) +{ + int ind,i=0,j,k; + for(j=0;j