Search Results

Search: Posts Made By: hell666
Forum: Programming 11-16-2002
15,887
Posted By hell666
strtol() can be used to convert from string to...
strtol() can be used to convert from string to binary, ANSCI C again.
For the case of vice versa, how are you going to store binary data types? C does not offer separate data type for this, so an...
Forum: Programming 11-16-2002
11,034
Posted By hell666
>When i read 4 bytes from a socket the read...
>When i read 4 bytes from a socket the read function returns 0 value. what does it mean?
Read man pages on read(), the return value section. The return value of read() would be zero, stressing there...
Forum: Programming 11-02-2002
2,550
Posted By hell666
Yes, see help on 'tail' command.
Yes, see help on 'tail' command.
2,600
Posted By hell666
export EXINIT="se nu" should do the trick. But...
export EXINIT="se nu"
should do the trick. But if you do not want to type this after every login, include the same line in your startup script depending on your shell. Ex: .profile for KSH, .cshrc...
Forum: Programming 10-19-2002
2
set
3,128
Posted By hell666
'set' is an internal command to most of the...
'set' is an internal command to most of the shells. You are tryin to spawn a new process with this, which is not allowed. This is why it is not working for you. On the other hand, 'ls' is an external...
Forum: Programming 10-12-2002
1,914
Posted By hell666
That is because the last time you made a choice...
That is because the last time you made a choice and hit [ENTER], the [ENTER] key was also stored in the input buffer along with your choice. And this [ENTER] key code was retrieved the next time you...
Forum: Programming 10-09-2002
5,364
Posted By hell666
Yes, there is. See help on getenv() char...
Yes, there is. See help on getenv()
char *p_home;
p_home = getenv("HOME");
/* Check for return value */
Forum: Programming 10-02-2002
3,323
Posted By hell666
Yes you can. see if Pro*C/C++ Prescompiler has...
Yes you can. see if Pro*C/C++ Prescompiler has come along with your distribution of Oracle Client.
Forum: Programming 09-16-2002
17,976
Posted By hell666
Or, here's a simpler way: sprintf(final,...
Or, here's a simpler way:
sprintf(final, "%.06d", num); /* 'num' is assumed to be of type int */
sprintf(final, "%.06d", atoi(num)); /* 'num' is assumed to be of type 'char *' */
Forum: Programming 09-16-2002
2,456
Posted By hell666
'optarg' is of type 'string' (char *). If 'off_t'...
'optarg' is of type 'string' (char *). If 'off_t' is of type int, use atoi() to convert optarg to type off_t.
Forum: Programming 09-08-2002
5,615
Posted By hell666
Here's...
Here's (http://users.actcom.co.il/~choo/lupg/tutorials/multi-thread/multi-thread.html) one.
Forum: Programming 09-03-2002
8,205
Posted By hell666
If you are planning to read from the 'stdin'...
If you are planning to read from the 'stdin' [Keyboard];
fgets(l_str, 255, stdin);
10,407
Posted By hell666
See man pages on 'crypt' command.
See man pages on 'crypt' command.
Forum: Programming 08-22-2002
5,143
Posted By hell666
Yes, it is possible. See help on system()
Yes, it is possible. See help on system()
12,810
Posted By hell666
or ...
or ...
Forum: Programming 08-21-2002
96,430
Posted By hell666
You don't need to explicitly compile and then...
You don't need to explicitly compile and then link the .c file. Instead, executing:

will first compile, then link, and the executable will be called filename.
Anyway, since you asked how you...
10,199
Posted By hell666
1.) Transfer each file, on file-by-file basis ...
1.) Transfer each file, on file-by-file basis
2.) Transfer files in batches (mget 1* 2* 3*)
4,883
Posted By hell666
There's a limit to the number of fork() processes...
There's a limit to the number of fork() processes that can exist at any given point in time, and this limit is configurable. This threshold is there somewhere in the control panel (don't remember...
Forum: Programming 08-09-2002
26,220
Posted By hell666
Here's one (http://www.google.com)
Here's one (http://www.google.com)
2,728
Posted By hell666
If you are looking for code: #! /bin/ksh ...
If you are looking for code:

#! /bin/ksh

tot_files=`ls -la | wc -l`

if [ $tot_files -ge 2 ]
then
echo " DIR not empty"
else
echo " DIR empty"
fi
2,728
Posted By hell666
man ls man wc ls -la | wc -l This will...
man ls
man wc
ls -la | wc -l
This will include the "." and ".." directories too.
Forum: Programming 08-01-2002
22,686
Posted By hell666
Try this: #include <curses.h> int ...
Try this:


#include <curses.h>

int main(void)
{
initscr();
clear();
refresh();
endwin();
}


And compile with:
cc prog.c -o prog -lcurses
Forum: Programming 07-30-2002
8,051
Posted By hell666
There is no same header file under Linux, but you...
There is no same header file under Linux, but you sure do have a similar library called the 'curses' library. You do have the getch() function in it as well. If you have installed it on your machin,...
2,733
Posted By hell666
What exactly are you asking for? Do you want to...
What exactly are you asking for? Do you want to know how would reaf from the file or what? If so, it depends on the way the names have been stored in the file, if were written with fprintf(), use...
2,861
Posted By hell666
You can use the calculator provided by your...
You can use the calculator provided by your flavort of UNIX, it's usually bc (dc). In AWK, it's bascically multiplying numbers like you would normally do (1.2 * 2.3).
Showing results 1 to 25 of 51

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