Search Results

Search: Posts Made By: vistastar
Forum: Programming 12-05-2012
1,921
Posted By vistastar
you need: myfile.getline(number,25); and atoi().
you need:
myfile.getline(number,25); and atoi().
Forum: Programming 12-18-2011
11,167
Posted By vistastar
define another two semaphore: sem_t zero,...
define another two semaphore:

sem_t zero, one;

a thread wait for zero and post one, while the other thread wait for one and post zero.
1,343
Posted By vistastar
You need this gcc option: -std=c99
You need this gcc option:
-std=c99
Forum: Programming 08-26-2011
4,373
Posted By vistastar
1, Only memory allocated explicitly or implicitly...
1, Only memory allocated explicitly or implicitly by malloc() should be free() manually (explicitly or use wrapper of free).

2, If you don't free them, OS will recycle them when the process...
1,250
Posted By vistastar
try the 'file' command
try the 'file' command
13,084
Posted By vistastar
CC is the traditional UNIX C compiler, while GCC...
CC is the traditional UNIX C compiler, while GCC is GNU's compiler set incuding C compiler. On Linux the command cc may be a link to gcc.
2,830
Posted By vistastar
‘$@' means all position parameters, which include...
‘$@' means all position parameters, which include noai.
3,869
Posted By vistastar
No, I just read it now.
No, I just read it now.
3,869
Posted By vistastar
A trick to avoid ESC in vim
Hello, I find a trick to avoid pressing ESC without key-maping in vim. I am pleasure using this method, because ALT key is very comfortble for thumb to press.

What's the trick? the ALT key.
...
8,020
Posted By vistastar
1 #!/bin/bash 2 3 if [ $# -ne 3 ];then ...
1 #!/bin/bash
2
3 if [ $# -ne 3 ];then
4 echo "Usage: $0 num1 num2 dir"
5 exit 1
6 fi
7 ls -1 $3 |sed -n "$1,$2p"
8 exit 0
9


...
Showing results 1 to 10 of 10

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