This question already has answers here:
How can I view the source code for a function?
(13 answers)
Closed 9 years ago.
I would like to how to view source code of compiled C code in R.
I am looking for C code for package "nlm"; the corresponding compiled C code is "C_nlm".
I am new to R, so please suggest your inputs in a basic way.
Thanks
Take a look here in this R News article about sources
Also some googling around, I found references that the functionality you are looking for is in:
src/main/optimize.c
Related
This question already has answers here:
Regex.h for windows
(1 answer)
C: Regex library with MinGW
(2 answers)
Closed 4 months ago.
I'm trying to use regular expression for a project in C but it seems like it's not working or I'm maybe missing something.
When I try to #include <regex.h> it says Cannot open source file 'regex.h'.
When I try to #include <regex> it breaks my size_t data type and makes all my function calls not allowed in a constant expressions.
What do I need to make it work using Visual Studio as an environment, maybe there is an easier way to use regular expressions in C
This question already has answers here:
Is there an equivalent in C for C++ templates?
(7 answers)
Closed 4 years ago.
I've previously worked with C but I'm still a major newby in general.
Currently I'm working on a little project that involves Parallel Computing and for this we are using the language Cilk+.
My objective is to implement a parallel scan pattern using Cilk+ and I've found this reference to the subject, but I don't understand half of the notations on it.
Does C have templates? I thought only C++ had them.
If yes, how do they work? I've found nothing regarding the subject.
If not, then can someone explain me what line 1 and 5 mean?
Thank you in advance!
C does not have templates. C++ does.
Line 1 is using C++ templates.
Line 5 is not standard C or C++. It is part of the Cilk Plus extension.
If this is a new project, you may way to avoid Cilk Plus. It's officially deprecated. Intel is encouraging everyone to switch to OpenMP or TBB instead.
This question already has answers here:
How to create a linux user using C/C++?
(3 answers)
Closed 6 years ago.
I want to add or delete or edit usernames of /etc/passwd in a C program. Are there any standard Linux functions that do a such functions?
There is adduser and deluser. Use man deluser for details.
EDIT: i missed the C part in the question.
man is also your friend in this case. With man 3 deluser you can ask if there is anything in stdlib called like that. Read https://unix.stackexchange.com/questions/3586/what-do-the-numbers-in-a-man-page-mean for more informations on that.
This is not the case. You might want to call the unix tool from within C: How do you write a C program to execute another program?
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Undefined Behavior and Sequence Points
Which 'C' compiler gives the logically correct answers... I mean Turbo C older version or the newer one named as Borland cpp 4.5 and above?
The different outputs of the question { int i=5;printf(i++*++i);} made me ask this.
No C compiler will give a correct answer.
The most correct answer would be to detect nonsense of this kind and refuse to compile it with an error message.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
C++ R - tree implementation wanted
I've been hunting just about all evening...
Anyone know of a R*-Tree implementation that builds on a modern C compiler?
Thanks,
Chenz
SQLite's R* Tree might interest you. It is under public domain or such free license and builds with gcc.