sorry salem i dont see your post for malloc.
I tried this
char* pos(char* C,char* S) { // FIND C in S and returns a pointer for a char that contains the positions where C is in S
int...
Type: Posts; User: PoisonMind
sorry salem i dont see your post for malloc.
I tried this
char* pos(char* C,char* S) { // FIND C in S and returns a pointer for a char that contains the positions where C is in S
int...
????? this is an help???
NEW VERSION OF MY CODE.
#include<stdio.h>
#define MAXL 256
// funcoes pos e inv
int mystrlen(char *string) { // My String Lenght - returns string lenght
int len = 0;
#include<stdio.h>
#define MAXL 256
// funcoes pos e inv
int mystrlen(char *string) { // My String Lenght - returns string lenght
int len = 0;
while(*(string+len)!='\0') {
...
res = pos(compStr, r); i forgot to rewrite on my code
I'm doing that because pos function recives 2 char pointers char * C and char * S
how can i turn this compatible?
Here is my code
#include<stdio.h>
#define MAXL 256
// funcoes pos e inv
Only that?
problem solved thank you
Hi, this program reverse a string. i want to do this with pointers, but it has an erros that i dont know to solve
#include <stdio.h>
char* reverse(char *string) {
int length, c;
...
Thank You, you solved my problem ;)
Thank You you solved my problem
Hi, this program returns the average of all elements elements of array if the number of elements in array is power of 2
this is my code
#include <stdio.h>
#include <stdlib.h>
#include...
This program is compiling just fine but is not running. Even, Main is not initializing,
Here is my code
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int pow2(int n) {