Search Results

Search: Posts Made By: pharaoh
Forum: Programming 11-09-2011
1,621
Posted By agama
Two problems. First, %s in a printf() format...
Two problems.

First, %s in a printf() format string causes printf() to expect a pointer to a string, so you want to pass str and not what it's pointing to (not *str).

Secondly, you need to copy...
Forum: Programming 08-26-2011
4,287
Posted By frank_rizzo
free(3) is not a system call. from gnu.org...
free(3) is not a system call.

from gnu.org GLIBC manual
Forum: Programming 08-26-2011
4,287
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...
11,682
Posted By Chubler_XL
As Corona688 says generate the digits for the 5...
As Corona688 says generate the digits for the 5 decimal places. I'd pick 3 digits then 2 as RANDOM won't go high enough to pick all 5

#!/bin/bash
listFloats=0.0
for i in {0..3}
do
...
11,682
Posted By Corona688
BASH doesn't support floating point numbers. ...
BASH doesn't support floating point numbers.

How about generating random digits 0-9 and appending that into a floating point number?
Forum: Android 02-22-2011
12,985
Posted By pludi
Searching the Web for "arch multilib" yields this...
Searching the Web for "arch multilib" yields this (https://wiki.archlinux.org/index.php/Arch64_FAQ#Can_I_run_32-bit_apps_inside_Arch64.3F).
Forum: Programming 11-19-2010
5,639
Posted By Loic Domaigne
The original APUE from Steven's has been reworked...
The original APUE from Steven's has been reworked by Rago, which gave birth the APUE 2nd edition, see APUE2e (http://www.apuebook.com/). This book is good, no point.

The most recent and...
Forum: Programming 11-18-2010
5,639
Posted By fpmurphy
If you want portability, you should not be using...
If you want portability, you should not be using FreeBSD specific APIs. Stick to the set of APIs defined by the POSIX.1 standard.
Forum: Programming 11-18-2010
5,639
Posted By majid.merkava
unless you are coding based on POSIX standards it...
unless you are coding based on POSIX standards it doesn't matter what platform your are using. all of them will do the trick.
"Advanced Programming in the UNIX Environment" is one of the best (no i...
Forum: Programming 11-17-2010
5,639
Posted By Corona688
What system calls have you found to be missing?
What system calls have you found to be missing?
Forum: Programming 11-17-2010
5,639
Posted By jim mcnamara
What you want to do is get a copy of Stevens...
What you want to do is get a copy of Stevens 'Advanced Programming in the UNIX Environment'

It shows all of the system calls for linux/solaris/FreeBSD and shows how to get portability.

...your...
Showing results 1 to 11 of 11

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