Update openSUSE not use R

This commit is contained in:
Aoran Zeng 2025-07-22 18:46:05 +08:00
parent 86e0165733
commit 6b7af05a7f
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -5,7 +5,7 @@
* Contributors : Aoran Zeng <ccmywish@qq.com> * Contributors : Aoran Zeng <ccmywish@qq.com>
* Created On : <2023-09-17> * Created On : <2023-09-17>
* Major Revision : 1 * Major Revision : 1
* Last Modified : <2025-07-21> * Last Modified : <2025-07-22>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
#include "rawstr4c.h" #include "rawstr4c.h"
@ -44,16 +44,16 @@ os_opensuse_setsrc (char *option)
while (1) { while (1) {
chsrc_note2 ("请选择你的操作系统为:"); chsrc_note2 ("请选择你的操作系统为:");
printf ("%s", R"( printf ("%s",
1. openSUSE Leap "1. openSUSE Leap\n"
2. openSUSE Tumbleweed "2. openSUSE Tumbleweed\n"
"\n"
==> )"); "==> ");
int choice = 0; int choice = 0;
/* 接受到一个数字时返回1非法为0流结束为-1 */ /* 接受到一个数字时返回1非法为0流结束为-1 */
if (scanf("%d", &choice) != 1) if (scanf ("%d", &choice) != 1)
{ {
/* 清除输入缓冲区 */ /* 清除输入缓冲区 */
int ch; int ch;