Displaying 4 results from an estimated 4 matches for "copyn".
Did you mean:
copy
2020 Sep 03
4
[PATCH nbdkit] server/public.c: Uninline nbdkit_strdup_intern to avoid compiler warning.
I'm not sure if this is a GCC bug or a bug in our code, but
the attached workaround fixes it for me.
Rich.
2020 Sep 03
0
Re: [PATCH nbdkit] server/public.c: Uninline nbdkit_strdup_intern to avoid compiler warning.
A simple reproducer is:
----------------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
const char *
copyn (const char *str, size_t n)
{
return strndup (str, n);
}
const char *
copy (const char *str)
{
return copyn (str, SIZE_MAX);
}
----------------------------------------------------------------------
$ gcc -O2 -Wall -c test.c
In function ‘copyn’,
inlined from ‘copy’ at test.c:15:10:
test.c:...
2020 Sep 03
2
Re: [PATCH nbdkit] server/public.c: Uninline nbdkit_strdup_intern to avoid compiler warning.
...100, Richard W.M. Jones wrote:
>
> A simple reproducer is:
>
> ----------------------------------------------------------------------
> #include <stdio.h>
> #include <stdlib.h>
> #include <stdint.h>
> #include <string.h>
>
> const char *
> copyn (const char *str, size_t n)
> {
> return strndup (str, n);
> }
>
> const char *
> copy (const char *str)
> {
> return copyn (str, SIZE_MAX);
> }
> ----------------------------------------------------------------------
>
> $ gcc -O2 -Wall -c test.c
> In f...
2010 Dec 08
0
How to make parallel port work?
I have a windows program that needs access to the parallel port. How
do you make this work? It doesn't seem to out of the box. I'm pretty
sure it needs EPP/ECP mode.
The software is CopyNESW, and the sources are available -
http://www.qmtpro.com/~nes/copynes/copynesw_src.zip. I don't know a
thing about win32 programming, so I have no idea what to look for.