How to create Symbolic link from within a C++ program

Creating a Symbolic link from C++ program

Posted 15 November 2010 - 03:30 PM

Is there a way to create a Symbolic link from a C++ program without using a system call. Program runs with chmod +s as a privileged user on linux. System call will not honor the chmod +s and executes as the user not the privileged user that owns the program. Don't want to grant permissions to everyone.