Search Results

Search: Posts Made By: emitrax
Forum: Programming 09-21-2010
62,380
Posted By emitrax
I'm not sure I understood how it works. The...
I'm not sure I understood how it works.

The first character conversion prints whatever the buffer variable contains.
The second should print "0" padded with 18 zeros right?

Wouldn't that...
Forum: Programming 09-20-2010
62,380
Posted By emitrax
You are right. I fixed the title. Thanks.
You are right. I fixed the title. Thanks.
Forum: Programming 09-20-2010
62,380
Posted By emitrax
Did I forget to specify that I need to do this in...
Did I forget to specify that I need to do this in C(++)?
Forum: Programming 09-20-2010
62,380
Posted By emitrax
How to right pad with zeros using sprintf?
I need to right-pad with zeros a string by using (s)printf.

I looked up the manual and tried with

printf("%-19s", buffer);

which right-pad the string with spaces. So I tried
...
Forum: Programming 11-27-2009
11,287
Posted By emitrax
#include <stdint.h> int64_t e uint64_t. ...
#include <stdint.h>

int64_t e uint64_t.

On a 32 bit machine it is usually defined as (glibc code)

typedef unsigned long long int uint64_t;


The compiler will probably use two registers...
Forum: Programming 11-05-2009
2,548
Posted By emitrax
Let's be good today :-) cpp - Linux Command...
Let's be good today :-)

cpp - Linux Command - Unix Command (http://linux.about.com/library/cmd/blcmdl1_cpp.htm)
Forum: Programming 10-29-2009
3,814
Posted By emitrax
No I haven't. You mean I should set...
No I haven't. You mean I should set LD_LIBRARY_PATH in the main executable to add
the relative path based on it's current directory? I'm not sure it'll work if the loader
resolve all symbols at...
Forum: Programming 10-29-2009
3,814
Posted By emitrax
Linkers and Loaders: how to (if possible) specify relative path for shared library to the loader
Hi,

first of all I apologize if this is not the right section to post this question, but I didn't
know where else to post it.

I've developed an application which uses a shared library...
Forum: Programming 10-26-2009
26,685
Posted By emitrax
It looks like it worked. Could you please...
It looks like it worked.

Could you please explain or point me to an explanation of this?

Thanks,
S.
Forum: Programming 10-14-2009
26,685
Posted By emitrax
I'm sorry, but I don't get what you mean.
I'm sorry, but I don't get what you mean.
Forum: Programming 10-13-2009
26,685
Posted By emitrax
typedef struct forward declaration
I've google a bit about this and couldn't find an answer. Actually I read that it can't be done.

Basically I've defined the following structure and typedef it as follows.

stuct Name {
};
...
Forum: Programming 10-07-2009
10,707
Posted By emitrax
There is nothing to recreate. I m doing a...
There is nothing to recreate.

I m doing a sequence of

mkdir(dir);
chdir(dir)
for(subdir to create)
mkdir(subdir[i]);
chdir("..");

and so on, which in my case seems perfect, as I have to...
Forum: Programming 10-06-2009
10,707
Posted By emitrax
The best way is probably to iterate and call...
The best way is probably to iterate and call mkdir and chdir every time.
I'm actually in the process of doing something similar, and that's the way I'll go.
Constructing the (full) path every time...
Forum: Programming 10-01-2009
14,556
Posted By emitrax
Indeed. That's why I said I'll leave optimization...
Indeed. That's why I said I'll leave optimization as my last option.

First I'll make it fast and correct (hopefully bug free), then switch to optimization to make
it even faster (even if of a...
Forum: Programming 09-30-2009
14,556
Posted By emitrax
Do you have a _VERY_ good tutorial about...
Do you have a _VERY_ good tutorial about profiling with gprof ? I'm actually having
some trouble finding one. I found many, but none that satisfies me.
I'm particularly interested in profiling...
Forum: Programming 09-28-2009
14,556
Posted By emitrax
Nice tip! Didn't think of that. Thanks. ...
Nice tip! Didn't think of that.
Thanks.

Although it's four functions and not only two. Thus means
two arrays of pointers.

Interesting solution anyway.

S.

---------- Post updated at...
Forum: Programming 09-23-2009
14,556
Posted By emitrax
Yes. Too easy! :-) No, I don't have...
Yes.



Too easy! :-)
No, I don't have any control over it. Even because the packet is not always sent through actual IP protocol, but it could also be sent through USB.

It's an embedded...
Forum: Programming 09-23-2009
14,556
Posted By emitrax
Function pointer to inline function ?
Hi.

Problem: I have to parse the payload of a packet. The payload could be in Big Endian Format (network byte order) or little. That depends on a flag present in the header of the packet.
...
Forum: Programming 08-27-2009
3,448
Posted By emitrax
Byte order question
Hi,

The structure that will follow is supposed to hold the following RTP header field

0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8...
Forum: Programming 07-09-2009
5,176
Posted By emitrax
To be honest, I don't understand what you mean...
To be honest, I don't understand what you mean and how I should apply your suggestion to my case (for dumping the tables).

If possible, can you point to any interesting lecture with actual...
Forum: Programming 07-08-2009
5,176
Posted By emitrax
That's why I wouldn't want to use a database. The...
That's why I wouldn't want to use a database. The work involved, and the dependency produced, is not worth it in my case (IMHO).

I only have one writer, and one reader.

Data are written...
Forum: Programming 07-08-2009
5,176
Posted By emitrax
You mean I should use a database for holding the...
You mean I should use a database for holding the tables, like sqlite ?
Forum: Programming 07-08-2009
5,176
Posted By emitrax
Nope. I'm just trying to write an application as...
Nope. I'm just trying to write an application as efficient as possible, that needs to dump indexes table, and I'd like to learn as much as possible from this experience.



Do you mean to execute...
Forum: Programming 06-29-2009
5,176
Posted By emitrax
Best way to dump metadata to file: when and by who?
Hi,

my application (actually library) indexes a file of many GB producing tables (arrays of offset and length of the data indexed) for later reuse. The tables produced are pretty big too, so big...
Forum: Programming 06-09-2009
8,794
Posted By emitrax
The only thing the spec report is that 16bit...
The only thing the spec report is that
16bit is 10bit Mantissa 5 exponent
32bit is 23bit Mantissa 8 exponent
64bit is 52bit Mantissa 11 exponent
128bit is 112bit Mantissa 15 exponent

and is...
Showing results 1 to 25 of 42

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