What do you want to save?
Add Code snippet
New code examples
-
C 2022-01-22 06:15:57
delete string function in c
/*The logic behind the function is to copy and place the ending part of string along with the deliminator '\0' to the position from where you want the "no_of_char" number of characters removed*/ void delchar(char *string,int starting_pos, int ... Add solution -
Javascript 2021-11-20 17:23:10
length of list in javascript
var colors = ["Red", "Orange", "Blue", "Green"]; var colorsLength=colors.length;//4 is colors array length var str = "bug"; var strLength=str.length;//3 is the number of characters in bug Add solution -
Javascript 2021-11-20 11:03:36
js return indicie of string of ceritn sub string
function getIndicesOf(searchStr, str, caseSensitive) { var searchStrLen = searchStr.length; if (searchStrLen == 0) { return []; } var startIndex = 0, index, indices = []; if (!caseSensitive) { str = str.toLowerCase(); ... Add solution -
Other 2021-11-20 07:40:20
how to print the file content each line in c
1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 5 int main(void) { 6 // ... 7 8 // "Empty" the string 9 line[0] = '\0'; 10 11 while(fgets(chunk, sizeof(chunk), fp) != NULL) { 12 ... Add solution -
Other 2021-11-20 07:06:25
strstr
#include <string.h> int dim = strlen(name_string); Add solution -
C 2021-11-20 02:02:16
string length c
/** * A PROGRAM THAT RETURNS THE LENGTH OF A STRING FROM THE USER */ #include <stdio.h> /** * _strlen - takes a string and returns its length * @i: counter variable * @*s: the string entered by the user from the terminal * Return: Length of the st... Add solution