comparison doc/manual/manual_dynload_api.tex @ 248:ab23f9f2934a

- BeOS impl for dlGetLibraryPath - more dynload doc clarifications
author Tassilo Philipp
date Fri, 05 May 2017 13:13:43 +0200
parents 2a77747a5496
children 8b0fc583ce62
comparison
equal deleted inserted replaced
247:446d2220bc49 248:ab23f9f2934a
57 This function can be used to get a copy of the path to the library loaded with handle 57 This function can be used to get a copy of the path to the library loaded with handle
58 \lstinline{pLib}. The parameter \lstinline{sOut} is a pointer to a buffer of size 58 \lstinline{pLib}. The parameter \lstinline{sOut} is a pointer to a buffer of size
59 \lstinline{bufSize} (in bytes), to hold the output string. The return value is the size 59 \lstinline{bufSize} (in bytes), to hold the output string. The return value is the size
60 of the buffer (in bytes) needed to hold the null-terminated string, or 0 if it can't be 60 of the buffer (in bytes) needed to hold the null-terminated string, or 0 if it can't be
61 looked up. If \lstinline{bufSize} >= return value > 1, a null-terminted string with the 61 looked up. If \lstinline{bufSize} >= return value > 1, a null-terminted string with the
62 path to the library should be in \lstinline{sOut}. 62 path to the library should be in \lstinline{sOut}. If it returns 0, the library name wasn't
63 able to be found. Please note that this might happen in some rare cases, so make sure to always check.
63 64
64 \subsection{Symbol iteration} 65 \subsection{Symbol iteration}
65 66
66 \begin{lstlisting}[language=c] 67 \begin{lstlisting}[language=c]
67 DLSyms* dlSymsInit(const char* libPath); 68 DLSyms* dlSymsInit(const char* libPath);