From 6e4535ef3a2c3ec3a4c857673a43938fd04cba80 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 --- 2.3-1/src/c/string/strchr/gstrchra.c | 33 +++++++++++++++++++++++++++++++++ 2.3-1/src/c/string/strchr/int_strchr.h | 25 +++++++++++++++++++++++++ 2.3-1/src/c/string/strchr/strchr.h | 25 +++++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 2.3-1/src/c/string/strchr/gstrchra.c create mode 100644 2.3-1/src/c/string/strchr/int_strchr.h create mode 100644 2.3-1/src/c/string/strchr/strchr.h (limited to '2.3-1/src/c/string/strchr') diff --git a/2.3-1/src/c/string/strchr/gstrchra.c b/2.3-1/src/c/string/strchr/gstrchra.c new file mode 100644 index 00000000..f2f54359 --- /dev/null +++ b/2.3-1/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