DTSESSIONSAVEPATH(3)
π NAME π
DtSessionSavePath β get a pathname for saving application state information. β¨
β¨ SYNOPSIS β¨
#include &<Dt/Session.h>
Boolean DtSessionSavePath(
Widget widget,
char **savePath,
char **saveFile);
π¦ DESCRIPTION π¦
Okay bestie, so DtSessionSavePath is the function that returns the pathname your app should use for saving its state information. The info gets used later by the application to restore its state. π
The widget argument is the application's top level widget. The savePath argument is the address of the character string that receives the pathname of the state information file your app will use for storing its state. The saveFile argument is the address of the character string that receives the filename of the file your app will use for storing its state. π
π RETURN VALUE π
Upon successful completion, DtSessionSavePath returns True; otherwise, it returns False. No cap. π
π APPLICATION USAGE π
The application should add -session saveFile when it updates its WM_COMMAND property.
The application must use XtFree(3) to free data returned in *savePath and *saveFile. Like, actually must β don't skip this one, bestie. π«Ά
π₯ SEE ALSO π₯
Dt/Session.h-DtSession(5),DtSessionRestorePath(3)XtFree(3)
That's the whole page, bestie! source/version: the library call section; date: not printed on this page. π ππ¦
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms