The programme reports to the user that it's not an the list.
It would be something like NULL in this case, but avoiding this solutions seems to be quite difficult.
Type: Posts; User: matott
The programme reports to the user that it's not an the list.
It would be something like NULL in this case, but avoiding this solutions seems to be quite difficult.
It generates a list from directory entries, searches for the name in this list and returns the name and a version string which is generated from the filename.
name#version
Oh yes, its wrong. Else it would be some kind of dangling reference.
I thought about the empty string solution, but can you imagine another solution - maybe by changing the function prototype?
...
Hi,
I have the following function:
string &find (string &name);
It returns a concatenated string of name and another string. But if the specified name doesn't exist, the function has to...
I know, but you can't do sizeof (string), to determinate its length.
Hi,
currently I'm thinking of howto get the size of variable or class (data size) of any type. How can I do this?
Hi,
I'm currently thinking about the return of void pointers and their sizes. Let me give an example:
struct returnvalue
{
void *data;
size_t size;
}
#include <stddef.h>
#include <stdint.h>
uint32_t hash_algorithm_fvn (void *data, size_t size)
{
register char *a;
register uint32_t hash;
a = (char *) data;
Hi,
I'm currently implementing a hash table algorithm. For hashing I used the FVN algorithm (http://www.isthe.com/chongo/tech/comp/fnv/. But now I'm asking myself to store/order them effective. I...
I know the source of 2.0 and 3.0 they're both very complex and hard to read.
Hi,
I'm currently doing a research on the xdelta algorithm. But it's hard to find good documentation and implementations.
Do you some good documents/sites?
By the way: Is there maybe a better...
Hi!
If have this code:
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
//#include <
#include <sys/types.h>
#include <sys/socket.h>
Hi!
I'm looking for a paper describing the cpio algorithm/format. The GNU sources are that complex that would have to spend some hours in reading -- but I don't have this time.
Thanks
matott