Created new data types `Filename' and `FontSpec', intended to be
[u/mdw/putty] / winmisc.c
CommitLineData
e0e7dff8 1/*
2 * winmisc.c: miscellaneous Windows-specific things.
3 */
4
5#include <windows.h>
6#include <stdio.h>
7#include <stdlib.h>
8#include "putty.h"
9
10void platform_get_x11_auth(char *display, int *proto,
11 unsigned char *data, int *datalen)
12{
13 /* We don't support this at all under Windows. */
14}
9a30e26b 15
16Filename filename_from_str(char *str)
17{
18 Filename ret;
19 strncpy(ret.path, str, sizeof(ret.path));
20 ret.path[sizeof(ret.path)-1] = '\0';
21 return ret;
22}
23
24char *filename_to_str(Filename fn)
25{
26 return fn.path;
27}
28
29int filename_equal(Filename f1, Filename f2)
30{
31 return !strcmp(f1.path, f2.path);
32}
33
34int filename_is_null(Filename fn)
35{
36 return !*fn.path;
37}