08-15-2013
The duration of objects in a C program varies.
"Hello World" is a constant and the memory persists for the duration of the program. The pointer is only visible from the function it was called from, the way you have coded it.
7 More Discussions You Might Find Interesting
1. Programming
In a declaration, I have:
const char comment_begin = "<!--";
const char comment_end = "-->";
const int comment_begin_len = strlen(comment_begin);
const int comment_end_len = strlen(comment_end);
When I compile, I get the warnings:
emhttpc.c:64: warning: initializer element is not... (10 Replies)
Discussion started by: cleopard
10 Replies
2. Shell Programming and Scripting
I'm not sure how to best explain what I'd like to do, so let me give an example. I used to work in a department that deals with internet security. This department had an "internal" website (only people in the building can get on it) and an "external" website (anyone in the world can get on it --... (1 Reply)
Discussion started by: sstevens
1 Replies
3. Shell Programming and Scripting
Hallo
I have maybe a little bit advanced request....
I need to choose one random part betwen %....
so i have this..
%
text1 text1 text1
text1 text1 text1
text1 text1 text1
%
text2 text2
text2 text2 text2
%
text3 text3 text3
tetx3
%
this choose text between %
awk ' /%/... (8 Replies)
Discussion started by: sandwich
8 Replies
4. Solaris
Hi friends,
I am new to Solaris, I have just managed to install Solaris 10 under VirtualBox. As I use the system, I constantly get some very disturbing error messages on my screen, I hope you will help me remove them. Messages are
# syslogd: line 24: WARNING: loghost could not be resolved
... (6 Replies)
Discussion started by: gabam
6 Replies
5. Shell Programming and Scripting
Hi. I define my variables as:
month=jul
DD=17
YEAR=2012
transmission_file_name_only=test_$month$DD$YEAR_partial.dat
However when I run my script the variable 'transmission_file_name_only' resolves to:
File "/downloads/test_jul17.dat" not found.
How can I append this '_partial'... (3 Replies)
Discussion started by: buechler66
3 Replies
6. Shell Programming and Scripting
Hi All !
I am just trying to print bash variable in awk statement as string
here is my script
n=1
for file in `ls *.tk |sort -t"-" -k2n,2`; do
ak=`(awk 'FNR=='$n'{print $0}' res.dat)`
awk '{print "'$ak'",$0}' OFS="\t" $file
n=$((n+1))
unset ak
doneI am getting following error
awk:... (7 Replies)
Discussion started by: Akshay Hegde
7 Replies
7. Debian
I'm using LM 17.3x LIVE. Have constant and sometimes, severe lagging issues. Problems started when I "upgraded" to 18.3x. I tried 5 other distros all with the same issues. Went back to 17.3 and , alas, the problem followed. Found this: sudo gedit /etc/sysctl. conf vm. swappiness = 15, but all it... (4 Replies)
Discussion started by: 69Rixter
4 Replies
LEARN ABOUT DEBIAN
qwavsilence
qwavsilence(1) quelcom man pages qwavsilence(1)
NAME
qwavsilence - detect and shrink silence sequences in wav files
SYNOPSIS
qwavsilence [option]... file...
DESCRIPTION
qwavsilence reads a list of wav files looking for silence sequences.
OPTIONS
-d <duration>[<format>], --duration=<duration>[<format>]
duration is a positive integer that specifies the minimum duration of a silent sequence on a file to be reported. the value is
treated as a sample number unless a format specifier is used. see the FORMATS section below for information. the default value is
one second.
-h, --help
show a brief help and exit.
-S, --shrink
when this option is set, all the silent sequences greater than duration will be shrinked down to duration and the file size trun-
cated accordingly.
-t <threshold>, --threshold=<threshold>
threshold is a percentage value respect the maximum (absolute) sample value. samples whose value is under the given threshold are
considered silent. for example, a value of 2 means that all samples with absolute value under the 2% will be treated as silent sam-
ples. the default value is 0.
-v, --verbose
show more detailed info.
-V, --version
show version and exit.
FORMATS
the following modifiers are provided:
j value is interpreted as milliseconds.
m value is interpreted as minutes.
s value is interpreted as seconds.
b value is interpreted as bytes.
k value is interpreted as kbytes (1024 bytes).
M value is interpreted as megabytes (1024 kbytes).
in either case, the values specified will be rounded to get an integer number of samples.
BUGS
tests has been done only with 44100 Hz 16 bit stereo files, though it may work with mono/stereo 8/16 bits files.
AUTHOR
dmanye@etse.urv.es
http://www.etse.urv.es/~dmanye/quelcom/quelcom.html
SEE ALSO
qwavinfo(1), qwavjoin(1), qwavcut(1), qwavfade(1), qwavheaderdump(1)
qmp3info(1), qmp3join(1), qmp3cut(1), qmp3check(1), qmp3report(1)
quelcom 0.4.0 february 2001 qwavsilence(1)