Issues translating C++ string manipulation to C

C
So I have a small portion of my program that is doing base conversion. In this case from a byte buffer (base 256) to base 58. I'm trying to translate...
2 years ago

Converting C# Encryption to C++ encryption

C++
I am currently learning C++ and looking into using it for a project but I need to be able to encrypt and decrypt string. I have conversion code in v...
2 years ago

Does C++ contain the entire C language?

C
I have read in tutorials that C++ contains the entire C programming language. However I have also read, in places like this that If you learn C++...
2 years ago

C - FFmpeg streaming from a C program?

C
I'm looking to replicate an FFmpeg command-line command in my C code. Specifically I would like to be able to run: ffmpeg -re -i video.mp4 -f mpegts ...
2 years ago

Remove comments from C/C++ code

C
Is there an easy way to remove comments from a C/C++ source file without doing any preprocessing. (ie, I think you can use gcc -E but this will expand...
2 years ago

Wrap C++ namespaced enum to C interface

C
I'm trying to wrap an existing 3rd party C++ library to a C interface, so that it can be used in bindings for another language. I'm having trouble fig...
2 years ago

C/C++: Write and Read Sockets

C
I'm sending and receiving info with a unix socket, but I do not completely understand how it works. Basically, I send a message like this: int wr_byt...
1 year ago

What is %*c%*c in `printf`?

C
When i use printf in %*c%*c in printf, it requires 4 values and also prints the sum of 4 and 5. I could not find a valid reason for this. When resea...
1 year ago

C inline function used from C++ code

C++
I am trying to call an inline function defined in C from C++ code and I am getting an unresolved symbol error. Can I even do this? In def.h: #ifdef ...
1 year ago

Unified Code Counter C/C++ Counting Rules

C++
USC's UCC (http://csse.usc.edu/ucc_wp/) has counting rules in their documentation if you download from the link. The counting rule in question here co...
1 year ago

Useful notepad++ plugins for C / C++ development?

C
What are all the helpful plugins available for C / C++ development?
1 year ago

c++ - function requires c style array

C++
I need to use some static c-libraries in my c++ code. There I have a lot of functions which look like this (here I use a very simple example in this ...
1 year ago

Converting C# hash function to C++

C#
I have this function in C#: public static unsafe int GetMonoHash(string str) { unsafe { fixed (char* src = str) { char* chPtr...
1 year ago

BUILD FAILED Netbeans 7.4 C / C++

C
I am trying to fix my Netbeans IDE to compile C / C++ programs, but I get the following error: "/D/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefil...
1 year ago

C# library to native C++ application

C#
I know I can use dll import + wrapping (managed) to use C++ libraries in C# applications (question link>>) but what's opposite? How can I use C# libra...
1 year ago

Understanding some crazy C/C++ declarations

C
Possible Duplicate: How to understand complicated function declarations? Consider: char (*(*x())[5])() How do I dissect this expression? ...
1 year ago

Any good C/C++ DSP library?

C++
Which DSP library in C/C++ would you recommend? I will need it for real-time embedded systems. It'd be great to have sound signal processing accompany...
1 year ago

C/C++ macro to repeat code

C
is there any way to repeat a C code N times with a macro? Also N is a macro. For example if I have this macros: #define N 5 #define COODE "nop\n\t"...
1 year ago

C# vs C default enum Values

C
After many years of reading on this site (and getting many helpful solutions), it's time for me to ask a question:) I was wondering about the default...
1 year ago

Call a C function from C++ code

Linux
I have a C function that I would like to call from C++. I couldn't use "extern "C" void foo()" kind of approach because the C function failed to be co...
2 years ago