« first day (653 days earlier)      last day (3203 days later) » 

04:18
If I were to iterate an array with pointer arithmetic, would I first have to make a pointer to the first item of the array like so: ?
char * buffer = malloc(n_characters * sizeof(int));
char * temp = buffer;
And then iterate with ++temp?
(Btw, not sure if I should make it an int array, I'm using int c = fgetc(fp_in); to read "characters" from file.)
 
2 hours later…
fge
fge
05:51
@Byte char * and sizeof(int) ? Uh
 
1 hour later…
07:09
Hi Anyone there?
07:37
@fge
Hi
 
3 hours later…
10:22
0
Q: SWIG: mutable string typemap help needed

DaveThis (I hope) is quite a simple issue, but despite doing some reading (I'm v. new to SWIG, and fairly green C-wise) I'm just not able to make the "connection" in my head. I have a function from a library (legacy code, keen not to edit): extern int myfunction(char *infile, char *maskfile, int ch...

10:34
Hi
fge
fge
If there is anyone interested in creating a C project I have one which can be fun to do
10:59
@fge Feel free to expand
fge
fge
@DrorK. doing a C version of Range, RangeSet and possibly RangeMap, specialized in primitives, from Guava (note: DiscreteDomain optional)
 
2 hours later…
12:39
swprintf_s(buf1, 256, "Error: %ls\n", buf2);
I get "Error: no instance of overloaded function "swprintf_s" matches the argument list" despite matching the third pattern at https://msdn.microsoft.com/en-us/library/ce3zzk1k.aspx (wchar_t buf1[256], wchar_t buf2[256])
Any idea what is going wrong?
 
5 hours later…
18:05
@NicolasRaoul what are you doing wrong? you're using a C++ compiler. This is the C room.
@AnttiHaapala egh... those Microsoft extensions... "safe" sprintf, etc.
Next version will include wshoot_yourself_in_the_foot_s
fge
fge
@DrorK. how is your "buffer library" coming along?
18:28
@NicolasRaoul also "Error: %ls\n" does not look like a widestring to me

« first day (653 days earlier)      last day (3203 days later) »