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 | |
10 | void 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 | |
9fab77dc |
16 | Filename filename_from_str(const char *str) |
9a30e26b |
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 | |
9fab77dc |
24 | const char *filename_to_str(const Filename *fn) |
9a30e26b |
25 | { |
9fab77dc |
26 | return fn->path; |
9a30e26b |
27 | } |
28 | |
29 | int filename_equal(Filename f1, Filename f2) |
30 | { |
31 | return !strcmp(f1.path, f2.path); |
32 | } |
33 | |
34 | int filename_is_null(Filename fn) |
35 | { |
36 | return !*fn.path; |
37 | } |