#include<stdio.h>
#include<string.h>
int main()
{
char *foo = "Charlotte*NC*is*a*really*cool*place*to*work*and*play";
char buf[100];
int l = strlen(foo);
int i;
for(i=0;i<l;i++)
Type: Posts; User: hardik
#include<stdio.h>
#include<string.h>
int main()
{
char *foo = "Charlotte*NC*is*a*really*cool*place*to*work*and*play";
char buf[100];
int l = strlen(foo);
int i;
for(i=0;i<l;i++)
i tried running it, unsuccessful attempt tho
Okay this is as close as you'll get...
#include <stdio.h>
#include <string.h>
int main(void)
{
char foo[] = " Charlotte *NC*is*a*really*cool*place*to*work*and*play";
#include <stdio.h>
#include <string.h>
int main (int argc, char* argv[])
{
char *foo = "Charlotte *NC*is*a*really*cool*place*to*work*and*play";
char *bar = strdup (foo);
...
OP is back hehe, well my problem was solved, so BIG THANKS TO ALL YOU GUYS OUT THERE HELPING OTHERS SO MUCH, but also just for sake of learning i am still keeping up with all your posting its...
i have a question for maxotator and zacs7, maxotator, in your code wont we need secondary buffer? same for zacs7 if i remove foo and bar wont i need a secondary buffer? i tried and got an error, also...
#include <stdio.h>
#include <string.h>
int main (int argc, char* argv[])
{
char *foo = "Charlotte *NC*is*a*really*cool*place*to*work*and*play";
char *bar = strdup (foo);
char baz...
sorry guys, i am complete newbie so taking very long to understand what exactly you guys saying, well i didnt mean to ignore, trust me i read each reply throughout and tried to understand it, i...
insert
#include <string.h>
int main (void)
{
char *foo = " Charlotte *NC*is*a*really*cool*place*to*work*and*play";
char delims[]="*";
char *result = NULL;
result =...
i was trying to post my code so i can get further help, i couldnt figure how to do that, help plz?
well, its not a teacher/professor/manager. lolz i see u still firmly believe its for school assignment, i thought of it very first but then i saw its asking smallest amount of code possible, dont you...
and i did learn arrays and strings, but nothing on this advance level, i would love if you can point me somewhere where i can learn it like very quick? i know you are not giving out just whole...
schools r i guess not started yet summer is still going on, and i do apologize that i got frustrated about it and posted in all C forums, i need it for my work, i would apreciate if someone gets back...
ok, I am very new to C programming and i have a problem at hand, i wuld really really appreciate any help plz,
The string is defined as the following:
char * foo = " Baltimore...