Have you gone through the complete thread Mr. Principii??? I know how to install an rpm in CLI, but my question was different.
Type: Posts; User: vsriharsha
Have you gone through the complete thread Mr. Principii??? I know how to install an rpm in CLI, but my question was different.
To see whats going on, try this:
# include<stdio.h>
# include<conio.h>
# include<string.h>
void main()
{
char name[20];
int c1=0,c2;
Hmmm,
Like this??
int i = 527;
int j, k, l;
<somecode>
printf("J = %d\t K = %d\t L = %d\n",j,k,l);
will give you...
First of all it is not a challange.
Use a mod function in a while loop:
char str[15];
int i,j,k=0;
i=32; // example
while ( i > 0 )
{
Also, why are you not locking the mutex before calling open?
-Harsha
This might be of much interest to you
This is what the MAN page in linux says:
In your main program, what are you trying to achieve by
while(kbhit())
input = getch();
Change it to:
while(!kbhit());
But this will not reduce the code significantly, will it?
This should.
-Harsha
Hi,
this might not be a problem, but a non-follow of specification.
PTHREAD_MUTEX_INITIALIZER can only be used on Static mutex. Check This out... Info On Mutex Initializer
I cannot try it out...
HI since you are not checking the condition of #else or #elseif.. why dont you do...
#ifdef DEBUG
switch(whatever)
{
case 0x114:
struct whatever *ptr;
...
See if you can declare a macro in place of the
#ifdef and #endif
and use that macro.
-Harsha.
Then there is a problem in your fscanf function... You need to pass the address of variables ( check out the third variable)...
-Harsha.
Point No 1:
You are using the structure "struct node *......." prior to its declaration....
Add the definition of the structure node immediately after your #define...
and that problem will be...
Read the FAQ for Insertion Sort....
Here is the Link
-Harsha
Check this out...
This Post
-Harsha
So, printf works in a default console mode where a \n is actually \n\r and cprintf changes the console mode where a \n is strictly \n and a \r is strictly \r.
OOps...
learnt that........(my original impression was that the linefeed char is only useful while printing the text to a printer......the good old dot-matrix printers etc., Never knew that \n...
But there is no rule that says cprintf will print data right-aligned just because it sees spaces....
My guess is that Guti14 is mistaking the inclusion of spaces to right alignment. cprintf...
Maybe the non-standard function open_camera() is causing the problem and getting into blocked state. Are you sure the problem is not there?
-Harsha
Hi..
Sorry for the confusion...
In my First (original) post, there was a typo error wherein, I assigned 'A','B','C','D' to mystruct.ch[0]. (Forgot to replace 0 with 1, 2 and 3 respectively and...
Hi Dave,
Thats cool, I just wanted that........
So, finally the part that i missed was, its essentially passing a structure to a function..... ( sometimes you really overlook the obvious.........
You cant use it to print anything but strings. I mean not as a substitute for printf (with exceptions ofcourse, like when there is nothing more to print than strings and you need a \n at the end by...
a minor correction is:
#include <ctype.h>
#include <stdio.h>
#define N 100
int main()
{
char string[N], *output;
Of course It wont work.....
1. Change void main() to int main() before Salem sees it... :D
2. Add a
return 0;
3. What you are doing is:
Start with pointer pointing to first char.
I believe no one will use the text file in a compressed form and hence it may not be necessary. The solution suggested by itsme86 is a nice one.....
-Harsha.