Search Results

Search: Posts Made By: AAKhan
Forum: Programming 06-14-2011
3,362
Posted By AAKhan
Thanks for ur reply Here is my code. This is...
Thanks for ur reply
Here is my code.
This is the getsubstring function am using to get substring
char* getsubstring(const char* str, size_t begin, size_t len)
{
if (str == 0 || strlen(str) ==...
Forum: Programming 06-14-2011
3,362
Posted By AAKhan
hi Please go through my complete code and help...
hi
Please go through my complete code and help me out to solve it.

#define MYSPACE "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
char*...
Forum: Programming 06-14-2011
3,362
Posted By AAKhan
hi All This is the way i have declared cRes....
hi All
This is the way i have declared cRes. sReq is very large string and i declared sRes as char sRes[2500] which is global.

char* cRes;
cRes = (char*) malloc(5 + sizeof(sReq));

What...
Forum: Programming 06-13-2011
3,362
Posted By AAKhan
Why segmentation(coredump) in the following code in C?
hi
I have a method which returns char*. In this method am using switch case. I am getting segmentation error in case 49 and my code is
case 49:
if(intFlag == 0210)
{
...
Forum: Programming 06-07-2011
6,432
Posted By AAKhan
hi am using the below code to get substring ...
hi
am using the below code to get substring
char* getsubstring(const char* urstr, size_t beginL, size_t len)
{
if (urstr == 0 || strlen(urstr) == 0 || strlen(urstr) < begin || strlen(urstr) <...
Forum: Programming 06-07-2011
14,645
Posted By AAKhan
How to accept multiple lines input from User in C?
Hi
I want to accept multiple lines input with spaces from User and i have a working code like this.
char sRes[2000];
char sReq[1000];
printf("Please enter request:");
scanf("%[^\n]",sReq); ...
Forum: Programming 06-07-2011
2,892
Posted By AAKhan
hi Here is the working code /* This method...
hi
Here is the working code
/* This method takes String, Start Length and End Length as input parameters, sub string the string and returns it */

char* getsubstring(const char* urstr, size_t...
Forum: Programming 06-07-2011
6,432
Posted By AAKhan
hi It's a very simple question and just need of...
hi
It's a very simple question and just need of good understanding. This is the code how i got it.
fopen(fp);
fprintf(fp,"\t\t\t\t\t\tHeader");
fprintf(fp,"\nString1:%s \t\t\t\t\t\tString2:%s",...
Forum: Programming 06-05-2011
6,432
Posted By AAKhan
How to write data to file in C?
Hi
I want to open a file and write data in the following manner.
Header
String 1 String 2
String 3 ...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 09:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy