rpmsg_srp.c
来自「在linux系统下客户端和服务器端使用RPC进行分布式通信。 包含客户端程序」· C语言 代码 · 共 21 行
C
21 行
/*
* Print a message to the /console.
* Return a boolean indicating whether the
* message was actually printed.
*/
#include<rpc/rpc.h>
#include "rpmsg.h"
#include <stdio.h>
printmessage(msg)
char *msg;
{
FILE *f;
f = fopen("/console", "w");
if (f == NULL) {
return (0);
}
fprintf(f, "%s\n", msg);
fclose(f);
return(1);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?