Search Results

Search: Posts Made By: julianjensen
Forum: Programming 10-17-2009
2,437
Posted By julianjensen
The pointer number is undefined. You could do...
The pointer number is undefined. You could do this, however:

int numberStorage;
int *number = &numberStorage;
*number = 4;

That example basically sets numberStorage to 4.

The string...
Forum: Programming 10-15-2009
3,567
Posted By julianjensen
I suppose that it might be possible but it would...
I suppose that it might be possible but it would make more sense to use something like getchar() and have a loop like so:

while ( ( c = getchar() ) != EOF )
{
...
}

or use gets();

I am...
Forum: Programming 10-15-2009
3,567
Posted By julianjensen
#include <stdlib.h> #include <stdio.h> int...
#include <stdlib.h>
#include <stdio.h>

int main( int argc, char **argv )
{
int num;
char format[ 8 ];
char inps[ 100 ];

scanf( "%d ", &num );
sprintf( format,...
Forum: Programming 10-14-2009
4,792
Posted By julianjensen
I seem to recall that you need #include...
I seem to recall that you need

#include <time.h>

instead of (maybe in addition to)

#include <sys/time.h>
Forum: Programming 10-14-2009
25,825
Posted By julianjensen
Try this: typedef struct tmpname { int...
Try this:

typedef struct tmpname {
int a, b;
struct tmpname *next;
...
} Name;

void foo( Name *p )
{
}
Showing results 1 to 5 of 5

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